How to get ButtonEdit
at specific row index?
This is how I am creating RepositoryItemButtonEdit
column.
Private Sub PopulateDataGrid()
GrdCntrlMain.DataSource = CreateDataSet().Tables(TABLE_WORKERS)
Dim lObj_GrdClmn As GridColumn = GrdView.Columns.AddField("Select") ' This is my RepositoryItemButtonEdit column
With lObj_GrdClmn
.VisibleIndex = GrdView.Columns.Count
.OptionsColumn.AllowEdit = True
End With
GrdView.OptionsView.RowAutoHeight = False
AddHandler GrdView.MouseMove, AddressOf GrdView_MouseMove
Dim lObj_RepItm_BtnEdt As New RepositoryItemButtonEdit
lObj_RepItm_BtnEdt.TextEditStyle = TextEditStyles.HideTextEditor
AddHandler lObj_RepItm_BtnEdt.ButtonPressed, AddressOf lObj_EdtrBtn_Click
Dim lObj_EdtrBtn As EditorButton = New EditorButton()
lObj_EdtrBtn.Kind = ButtonPredefines.Glyph
lObj_EdtrBtn.Appearance.BackColor = Color.Azure
lObj_EdtrBtn.Caption = "Remove"
lObj_EdtrBtn.Appearance.Options.UseTextOptions = True
lObj_RepItm_BtnEdt.Buttons.Clear()
lObj_RepItm_BtnEdt.Buttons.Add(lObj_EdtrBtn)
GrdCntrlMain.RepositoryItems.Add(lObj_RepItm_BtnEdt)
GrdView.Columns("Select").ColumnEdit = lObj_RepItm_BtnEdt
End Sub
I want to get button at 6th row as highlighted in image.
Let say I want to get this button on CellValueChanged
event.
How I can get this button?