Thread: Question Datagrid problem
View Single Post
  #1 (permalink)  
Old 11-21-2008, 6:03 AM
juhah juhah is offline
VB.NET Forum Newbie
.NET Framework: .NET 1.1 (VS 2003)
 
Join Date: Apr 2007
Posts: 21
Reputation: 38
juhah is on a distinguished programming path ahead
Default Datagrid problem

Every time a form is loaded, I create a datagrid with two columns. The problem is that the first cell in the first column is automatically selected and blue. Setting the datagrid ReadOnly-property to False doesn't help. I found that setting the datagrid.Enabled=False helps, but then the scrollbars (which i need) won't work.

How can I make the whole datagrid sort of non-clickable and non-selectable, so that the user can't set focus to the cells, and also the first cell isn't selected when the form is loaded, but the datagrid is still scrollable?
Reply With Quote