DataGrid appearance.

L

logicalfeline

I have a DataGrid on a form which is disabled and enabled at runtime
depending on user's choices. I've noticed that when the datagrid is in
enabled mode at runtime, the scrollbar is still disabled. Can't seem to
figure out why..
Also, when the datagrid is disabled, I'd like there to be nothing in it. At
the moment it shows an unpopulated table, i.e. column headers and one empty
row. Do I need to unbind it at run time for this to happen?
Ever confused,
Cat
 
M

Mohamoss

Hi cat
As for your first question , the scrollbar may be disabled because the data
inside the datagrid didn't use all the size of the datagrid , it will only
be enabled if it is needed ( i.e. data in the datagrid exceeded its size)
About your second question, yes of course you need to unbind it ( making
it disabled "even not visible " doesn't mean that it is not bound anymore )
so this is something else that you need to do , unbind if you want it to be
cleared
hope that helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

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