Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A quick note on my problems with the datagrid
Message
From
14/12/2001 10:56:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
A quick note on my problems with the datagrid
Miscellaneous
Thread ID:
00594443
Message ID:
00594443
Views:
66
Some of the things that were giving me problems.

First I tried to create a New DataGridColumn Style.
You cannot do this. What you do is create a New DataGridTextBoxColumn()

I also tried to add a New GridColumnStylesCollection.
You cannot do this. And the way you add to the collection is NOT
GridColumnStylesCollection.Add(), but
DataGridTableStyle.GridColumnStyles.Add()

Also, as I said before, you need to set the DataGridTextBoxColumn to New for
every column you create.

And last but not least, you need to set the TableStyle().MappingName to ""
before setting the DataGrid.DataSource and then set the
TableStyle().MappingName back to the TableName.

Hope this information is useful!
Randy Belcher
AFG Industries, Inc.
Reply
Map
View

Click here to load this message in the networking platform