Results 1 to 2 of 2

Thread: [02/03] diting datagrid rows

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    116

    [02/03] diting datagrid rows

    hi can any one tell ,how to edit datgrid rows

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [02/03] diting datagrid rows

    Don't edit the grid. Assuming it is bound to a DataTable you should edit the table contents. For instance, to edit the row that is selected in the grid:
    vb Code:
    1. Dim data As DataRow = myDataTable.DefaultView(myDataGrid.CurrentRowIndex).Row
    You can also get at the row via the CurrencyManager but I've never really done that so I won't try to say how.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width