Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
- {
- DataRow[] result = ds.Tables["AssessmentItems"].Select("GroupId = " + listBox1.SelectedIndex);
- var newTable = result.CopyToDataTable();
- BindingSource bindSource = new BindingSource();
- bindSource.DataSource = newTable;
- dataGridView1.DataSource = bindSource;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement