Display all child records of a parent in DataGridView
问题 I am new to .NET, and I don't really understand how it works. I have this project I have to do and I'm asked to display all parent records, and when I select a parent record there should be displayed all its children. So far I managed to display all the parent records, using a DataGridView. private void display_btn_Click(object sender, EventArgs e) { dg.DataSource = data_set.Tables[0]; } The following code works but it displays all the records from the child. I know that I should compare