DataGrid cell question

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top