DataGrid update problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • LinasB

    DataGrid update problem

    Hi all,

    I use DataGrid with DataView.AllowN ew=False.
    All works fine, when user changes data in DataGrid row and when he goes to
    the next row, data flows to the database.
    But sometimes DataGrid have only one record! And user can't leave the row
    after changes.
    How to update data to dataset without leaving row?

    Thanks. LinasB


  • LinasB

    #2
    Re: DataGrid update problem

    Because nobody knows, I write the solution.
    It's simple.

    DataGrid.Curren tRowIndex = 0

    And after that you can update database.
    [color=blue]
    > I use DataGrid with DataView.AllowN ew=False.
    > All works fine, when user changes data in DataGrid row and when he goes to
    > the next row, data flows to the database.
    > But sometimes DataGrid have only one record! And user can't leave the row
    > after changes.
    > How to update data to dataset without leaving row?[/color]



    Comment

    Working...