How to disable datagrid?

desperado

Well-known member
Joined
Oct 7, 2006
Messages
68
Programming Experience
Beginner
Hey everyone,

Was hoping someone out there could offer me some help please. What I'm trying to do is something basic really, all I want is to disable my datagrid so the user can't select a row/column/ascend or descend/re-size the columns/rows (basically everything the bottom coding does). However the navigation scroll bars still work because the coding below disables them.

So far I have the following:

VB.NET:
datagrid1.Enabled = False
(in the form load event)

The above works perfect but it does not let me scroll through the data with the navigation bars, if there is a way where I can enable the navigation bars using the above code then thats great too and I would be happy with that.

Any help please?
 
Back
Top