Need Help in DatagridView
-
Hello Friends.. I am using a datagridview which have a checkbox column.there is a delete button on the form.i want that when i click the delete button and none of the check box is checked(true). it will simply display a message that "Firrst select a row".
-
Hello Friends.. I am using a datagridview which have a checkbox column.there is a delete button on the form.i want that when i click the delete button and none of the check box is checked(true). it will simply display a message that "Firrst select a row".
Loop through each row in the datagridview and check for the ones where the value of the cell with the checkbox == true. If there are none then be rude to the user and ask him/her to check 1 or more item.
Never underestimate the power of human stupidity RAH
-
Loop through each row in the datagridview and check for the ones where the value of the cell with the checkbox == true. If there are none then be rude to the user and ask him/her to check 1 or more item.
Never underestimate the power of human stupidity RAH
-
suppose there are 20 rows and one is checked and i put the code (checkbox=true)with in the loop then 19 times it display "Please Select a Row". and i think its not good.
Thinking is not one of your strong suits is it. Loop the data rows count the checked items ask for confirmation to delete n# items checked OR call the user an idiot and ask them to check 1 or more item. If you can't work these things out you are really going to struggle as a developer!
Never underestimate the power of human stupidity RAH
-
Thinking is not one of your strong suits is it. Loop the data rows count the checked items ask for confirmation to delete n# items checked OR call the user an idiot and ask them to check 1 or more item. If you can't work these things out you are really going to struggle as a developer!
Never underestimate the power of human stupidity RAH