How to Clear Grid view in C# [modified]
-
Hi I have problem in clearing the grid view. It is binding the old values every time i try to bind any values to the grid. This is the code i have written to clear the grid view Private void clearGridView(DataGridView gView) { gView.SelectAll(); if(gView.SelectedRows.Count== gView.Rows.Count) { gView.Rowsl.Clear(); } foreach(DataGridViewRow dvConnRow in gView.SelectedRows) { gView.Rows.Remove(dvConnRow); } dgView.DataSource=null; } Can any one help me to solve my problem please kesavan -- modified at 3:36 Wednesday 9th May, 2007
-
Hi I have problem in clearing the grid view. It is binding the old values every time i try to bind any values to the grid. This is the code i have written to clear the grid view Private void clearGridView(DataGridView gView) { gView.SelectAll(); if(gView.SelectedRows.Count== gView.Rows.Count) { gView.Rowsl.Clear(); } foreach(DataGridViewRow dvConnRow in gView.SelectedRows) { gView.Rows.Remove(dvConnRow); } dgView.DataSource=null; } Can any one help me to solve my problem please kesavan -- modified at 3:36 Wednesday 9th May, 2007
-
Hi I have problem in clearing the grid view. It is binding the old values every time i try to bind any values to the grid. This is the code i have written to clear the grid view Private void clearGridView(DataGridView gView) { gView.SelectAll(); if(gView.SelectedRows.Count== gView.Rows.Count) { gView.Rowsl.Clear(); } foreach(DataGridViewRow dvConnRow in gView.SelectedRows) { gView.Rows.Remove(dvConnRow); } dgView.DataSource=null; } Can any one help me to solve my problem please kesavan -- modified at 3:36 Wednesday 9th May, 2007