I have a RadGridView with a filed called Start with dynamically created buttons. When i click on it my code changed the text of the row that was clicked to Stop if it was Start Previously. MY issue is when i click another row the previously changed text is lost and the new row shows stop. I want to save the text of all the dynamically crated buttons when one is clicked.
Dim StartStop As New GridViewCommandColumn()
StartStop.Name = "StartStop"
StartStop.HeaderText = "Start"
StartStop.UseDefaultText = True
StartStop.DefaultText = "Start"
StartStop.Width = 40
StartStop.MinWidth = 40
AddHandler RadGridView1.CommandCellClick, AddressOf radGridView1_CommandCellClick
Sub radGridView1_CommandCellClick(ByVal sender As Object, ByVal e As EventArgs)
Dim ID As String = TryCast(sender, GridCommandCellElement).RowIndex
Dim StartStop As String = TryCast(sender, GridCommandCellElement).CommandButton.Text
If StartStop = "Start" Then
TryCast(sender, GridCommandCellElement).CommandButton.Text = "Stop"
TryCast(sender, GridCommandCellElement).CommandButton.Text = "Start"