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...