I am using Dexexpress xtragrid column and have displayed all rows of my database.
I wanted to add a new column to the datagridview and for that i did the following:
Dim AddOperationsColumn As New GridColumn()
AddOperationsColumn.Name = "colOperations"
AddOperationsColumn.FieldName = "Operations"
AddOperationsColumn.Caption = "Operations"
Grid_view_patients.Columns.Insert(1, AddOperationsColumn)
AddOperationsColumn.Visible = True
AddOperationsColumn.VisibleIndex = TotalColumns + 1
Now i want to add two buttons to it Edit
and Delete
Question: So how to add buttons to these fields.
I have already counted all the rows.