i am using the following to remove all list of gridControl but its not working giving error at Rows.no defination for Rows how can i loops throughs to remove all elements.
do
{
foreach (DataGridViewRow row in gridControl1.Rows)
{
try
{
gridViewForVariableLinkage.Rows.Remove(row);
}
catch (Exception) { }
}
} while (gridViewForVariableLinkage.Rows.Count > 1);