Monday, September 6, 2010

How to clear the data from a DataGrid on a list box SelectedIndexChanged event? ( C# windows form)

Write the following line in the SelectedIndexChanged event of the list box.

dataGridView1.DataSource = null;


No comments:

Post a Comment