Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Remove Datagrid Table Style?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
How to Remove Datagrid Table Style?
Divers
Thread ID:
00927613
Message ID:
00927613
Vues:
76
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...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform