Datagrid row delete
-
hi frnds.. i want to delete a row in datagrid when i select a row and press delete button,,, is there any event for that or how can i do this.. plse help me quick.. cheers..
Dear SamRST, If you have added a delete column then can get the e on datagrid itemcommand event and the e.item.itemindex will give you the index and you can get the value of that row by this index and can delete that, or use select column and get the selected index changed event of that grid to do so.
Jwalant Soneji (BE IT) Mobile: +91 9969059127 http://jnsoneji.spaces.live.com http://jnsoneji.blogspot.com
-
Dear SamRST, If you have added a delete column then can get the e on datagrid itemcommand event and the e.item.itemindex will give you the index and you can get the value of that row by this index and can delete that, or use select column and get the selected index changed event of that grid to do so.
Jwalant Soneji (BE IT) Mobile: +91 9969059127 http://jnsoneji.spaces.live.com http://jnsoneji.blogspot.com
-
thnks for reply, its not enough bcose, i'm using windows forms , not web forms.. for web forms, its okay... but .. cheers
ohh sorry, did not realize that...
Jwalant Soneji (BE IT) Mobile: +91 9969059127 http://jnsoneji.spaces.live.com http://jnsoneji.blogspot.com