Deleting the selected data from datagrid ?

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 ? ...

  1. #1
    Registered User Aga^^'s Avatar
    Join Date
    Aug 2008
    Posts
    71

    Deleting the selected data from datagrid ?

    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 06:42 AM.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. xor linked list
    By adramalech in forum C Programming
    Replies: 23
    Last Post: 10-14-2008, 11:13 AM
  2. Replies: 3
    Last Post: 04-18-2008, 11:06 AM
  3. Deleting all data in a struct array
    By grimuth in forum C++ Programming
    Replies: 11
    Last Post: 03-30-2008, 12:02 AM
  4. Dynamic data members?
    By confusalot in forum C++ Programming
    Replies: 4
    Last Post: 02-27-2005, 11:15 AM
  5. All u wanted to know about data types&more
    By SAMSAM in forum Windows Programming
    Replies: 6
    Last Post: 03-11-2003, 03:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21