Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi

I can add DataGridViewButtonColumn to datagridview in design but I want to do that at runtime.

Mean I want to add a DataGridViewButtonColumn at runtime.

What can I do?

I am sorry for bad writing.
Posted
Updated 26-Mar-11 10:59am
v2

The DataGridViewButtonColumn page on MSDN[^] shows how to add columns at runtime.

You might also find this page[^] useful.
 
Share this answer
 
v2
Comments
Wendelius 26-Mar-11 17:03pm    
I was just about to post the same link :) 5'd
To add to Henry Minute's answer, if you write the class (DataGridViewButtonColumn) into the editor in Visual Studio and press F1 you'll get the same page.
 
Share this answer
 
Hi

Google is always good friend of you to find solutions like this problems. see google results [^]

Some links

Dynamic Template Columns in the ASP.NET 2.0 GridView Control[^]

To-add-new-datagridviewbutton-column-in-a-databound-datagridview-at-runtime[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900