Home Forums WinForms controls Xceed Grid for WinForms how can i delete a record from the grid

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15646 |

    the xceedgrid was binding to a dataset.
    how can i delete the seleted row and update dataset using a button control not the delete from keyboard

    Imported from legacy forums. Posted by bizyalan (had 2785 views)

    User (Old forums)
    Member
    Post count: 23064

    anyone help via VB.NET?

    Imported from legacy forums. Posted by bizyalan (had 243 views)

    User (Old forums)
    Member
    Post count: 23064

    Simply insert some code to delete a row in the Click event of your button, and the DataSet (not the Database though) will automatically be updated by the grid. You can delete a row with code like this :

    Dim row As Xceed.Grid.DataRow = CType(GridControl1.CurrentRow, Xceed.Grid.DataRow)
    GridControl1.DataRows.Remove(row)
    ‘or
    GridControl1.DataRows.RemoveAt(row.Index)

    Imported from legacy forums. Posted by André (had 4317 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.