Hello,
Could you help me with this:
When a cell is selected in my grid, i would like its backcolor to change to "Selected color".
And when another cell is clicked, the previous cell change its backColor to "Original color".
All of this is working when I insert this code:
Here is what i don't know how to do:
There is a commandCell in my grid, and I when i click on it, i want the color of my previous selected cell to stay to "Selected color"
I try to put a condition saying : " if its the command cell, leave my previous selected cell colored"
But it doesn't work.
Can you tell me how to do it?
thank you
Could you help me with this:
When a cell is selected in my grid, i would like its backcolor to change to "Selected color".
And when another cell is clicked, the previous cell change its backColor to "Original color".
All of this is working when I insert this code:
Private Sub GridViewPrepack_CellClick(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles GridViewPrepack.CellClick |
'Get the right cell and the columnName |
Dim myNewSelectedCell = CType(sender, GridCellElement) |
Dim columnName As String = myNewSelectedCell.ColumnInfo.HeaderText |
GridViewPrepack.CurrentRow.Cells(columnName).CellElement.BackColor = Color.Red |
|
End Sub |
Here is what i don't know how to do:
There is a commandCell in my grid, and I when i click on it, i want the color of my previous selected cell to stay to "Selected color"
I try to put a condition saying : " if its the command cell, leave my previous selected cell colored"
But it doesn't work.
Can you tell me how to do it?
thank you