Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Remove Datagrid Table Style?
Message
General information
Forum:
ASP.NET
Category:
Forms
Title:
How to Remove Datagrid Table Style?
Miscellaneous
Thread ID:
00927613
Message ID:
00927613
Views:
75
Greetings,

I have a windows form datagrid containing a table style and various columns.

The table style, columns etc were created programatially in C#.

I now want to reformat the datagrid with different columns etc.

Keep getting error: "The datagrid table styles collection already contains a table with the same mapping name."

Tried:
this.dataGridTableStyle1.Dispose();
this.dataGridTextBoxColumn1.Dispose();
this.dataGridTextBoxColumn2.Dispose();

I think that I need to delete and recreate the style info. Cant seem to kill off the old style info. Is there a better way?

Best regards,

Todd
The day you take complete responsibly for yourself, the day you stop making any excuses, thats the day you start to the top. - O.J. Simpson

Great advice from a questionable source...
Next
Reply
Map
View

Click here to load this message in the networking platform