Hey all,
Does anyone know a way to stop a DataGridTextBoxColumn from displaying it's TextBox?
I have a ReadOnly grid, where each row selects in full, but it looks crappy when the TextBox shows up in each cell.
Here's the code to force the selection of the whole row:
And here's the example of the rendered display when you click a cell:
Thanks all
mafro
Does anyone know a way to stop a DataGridTextBoxColumn from displaying it's TextBox?
I have a ReadOnly grid, where each row selects in full, but it looks crappy when the TextBox shows up in each cell.
Here's the code to force the selection of the whole row:
VB.NET:
[COLOR="Blue"]Private Sub[/COLOR] dgTeamA_CurrentCellChanged([COLOR="Blue"]ByVal [/COLOR]sender [COLOR="Blue"]As [/COLOR]System.Object, [COLOR="Blue"]ByVal [/COLOR]e [COLOR="Blue"]As [/COLOR]System.EventArgs) _
[COLOR="Blue"]Handles [/COLOR]dgTeamA.CurrentCellChanged
dgTeamA.Select(dgTeamA.CurrentRowIndex)
[COLOR="Blue"]End Sub[/COLOR]
And here's the example of the rendered display when you click a cell:
Thanks all
mafro