DataGrid cell question

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

I created a custom DataGrid. When the user clicks in any of the cells, the
text is highlighted, even so the text is not editable (read only).
How can I avoid that? I want nothing to happen when the user clicks on a
cell.

Here is some sample code from my grid.

Dim tb3 As DataGridTextBoxColumn
tb3 = New DataGridTextBoxColumn
tb3.HeaderText = "Room"
tb3.MappingName = "room_desc"
tb3.NullText = ""
tb3.Width = 120
tb3.ReadOnly = True
ts.GridColumnStyles.Add(tb3)


Thank you for your help,

Steve
 
Back
Top