Datagridview row delete question
-
I have a datagridview that is bound to a datatable in my application. I want to delete a row based on a value in a column. I have the code to remove the row from the datatable and it removes it from the datagridview on the refresh for rows 1-x. Here is my issue when I change the value on the first row(0) to delete it, I can't? Any help would be appreciated.
-
I have a datagridview that is bound to a datatable in my application. I want to delete a row based on a value in a column. I have the code to remove the row from the datatable and it removes it from the datagridview on the refresh for rows 1-x. Here is my issue when I change the value on the first row(0) to delete it, I can't? Any help would be appreciated.
Clarify what you mean by, "I can't". If the row is deleted properly from the underlying datasource, then it will be removed from grid when properly refreshed.
I know the language. I've read a book. - _Madmatt
-
I have a datagridview that is bound to a datatable in my application. I want to delete a row based on a value in a column. I have the code to remove the row from the datatable and it removes it from the datagridview on the refresh for rows 1-x. Here is my issue when I change the value on the first row(0) to delete it, I can't? Any help would be appreciated.
hi i am just a trainee but in my opinion is try to use query as select statement by adding order by to that statement