edit,delete row in gridview RRS feed

  • Question

  • how do we perform basic operations on grid view?

    I need to edit ,delete,update grid view just like in   Is there any stright forward way in wpf if yes what is it   Here i populated gridview with listview  But i could't edit it I am using VS2008

       Any body could give me code pls?


    Thursday, July 29, 2010 3:56 PM


  • Hi Vimalkrishnan,

    The GridView in WPF is completely different with the GridView control in In WPF, GridView is just one of the view modes for ListView control. If you want to manipulate data, it is ListView and it's binding datasource you need to deal with.

    Generally, while using a listview to bind to a data source, you can use DataTemplate to make the data editable.

    For more information about GridView, please refer to

    For more about ListView, please refer to

    For more about DataTemplate, please refer to

    If you still have any doubts or concerns about this issue, please feel free to let me know.

    Best regards,


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Monday, August 2, 2010 8:48 AM