i want to delete a row or rows which i select from the datagrid. How can i do it ?
http://img15.imageshack.us/my.php?image=datagridkr1.jpg
This is a discussion on Deleting the selected data from datagrid ? within the C# Programming forums, part of the General Programming Boards category; i want to delete a row or rows which i select from the datagrid. How can i do it ? ...
i want to delete a row or rows which i select from the datagrid. How can i do it ?
http://img15.imageshack.us/my.php?image=datagridkr1.jpg
Last edited by Aga^^; 02-12-2009 at 05:42 AM.
Look at the properies of the datagrid. Check if it has some Delete/Remove property or method. If not, check for a Rows-property and see if that has some Delete/Remove property/method. If you find one check its documentation, either through intellisense or on the web (msdn).
That's how I would tackle it if I didn't know how to delete.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.