hi
i m usin a datagridview and used a checkbox in it. when i select a check box i want to delete it. i could not delete a row until i click on another cell after selecting a cell.then i used cureentcelldirtystatate and i succesfully deleted the row but ths happen for single cell when i select mu;tiple cells and want to delete it then it delete only a few rows and leave 2 or 3 rows left same.
plz help me
Loading

piyush sardhara177 reputationPosted Apr 9, 2011, 3:09 AM EDT
how many check box check that entry deleted ohter wise not
Muhammad younas164 reputationPosted Apr 9, 2011, 4:16 AM EDT
bt if iselect say 6 it deletes 4
Sam HobbsRank #107 · 20.5K reputationPosted Apr 9, 2011, 11:45 AM EDT
Do you want a row to delete as soon as you check the checkbox? If so, then why not use a plain button?
Do you want to be able to check multiple checkboxes? If so then when do you want the delete to work? Do you want to click a button or something that is outside the DataGridView to delete the selected records? Or do you want the rows to delete after you close the form?
Muhammad younas164 reputationPosted Apr 13, 2011, 3:03 AM EDT
CrishRank #1,487 · 1.1K reputationPosted Apr 13, 2011, 4:27 AM EDT
In asp.net,double click on checkbox property than call delete method. by this it done.
http://www.axistechnolabs.com/technology/ecommerce-development.aspx
Muhammad younas164 reputationPosted Apr 14, 2011, 5:55 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Apr 14, 2011, 6:08 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Apr 14, 2011, 12:01 PM EDT