Change DataGridView Column Type

Topics related to the Krypton Toolkit.

Moderators: Phil Wright, Chris Porter

Change DataGridView Column Type

Postby AndrewTraub » Sun Jun 03, 2012 3:42 am

How do I change the datagridview column's type in code? There's a design time setting called "ColumnType" but I don't see that option when I access the column in code with something like this datagrid1.columns("columnname").

Andrew
AndrewTraub
 
Posts: 9
Joined: Mon Oct 12, 2009 10:31 am

Re: Change DataGridView Column Type

Postby Bomi » Tue Jun 05, 2012 12:11 pm

As far as i know you can't change the type of a column at runtime, you'll have to clear the columns and add the columns with the appropriated type for each column according to the current situation. Another idea may be to add all possibly needed columns and switch their visibility at runtime...
Greetings, Bomi...
Bomi
 
Posts: 58
Joined: Fri Mar 06, 2009 12:42 am


Return to Krypton Toolkit

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron