Eline Sami

Eline Sami

  • NA
  • 47
  • 70.8k

Multiple selection of rows is not working - Windows form App

Aug 10 2015 3:18 AM
Hi
I have two problems in my app. Looks they are related to each others?

Firstly, multiple selection of rows is not working. Although the property has been set to true!
Secondly, I cannot delete even one row from the datagrid view by clicking on the command button deleteRow, while I can do that by calling same method using the context menu strip!
 
If I use the button to delete the selected rows in datagridviewm the following gives me always Zero
 
if (dataGrid1.SelectedRows.Count>0){}
 
So, how to delete/remove a single or multiple rows from the Datagridview? I am using windows form app and the datagrid is not binding to a db
 
 

 


Answers (2)