Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding button in Datagrid Columns (Win Forms)

Status
Not open for further replies.

fdsouth

Technical User
Jun 6, 2001
61
US
I am very new at c# and this whole .Net thing. I've been programming in c++ for years and have been asked to write something in c#.

Here's my question...

How do you add a column containing a button for each row in a datagrid? Does anyone have a sample I can learn from? I found one and can get it to compile fine but I get a runtime error upon execution.

HELP!!!
 
There are button columns if you go to your property builder for the datagrid. Just add one, or add a template column, in which you can place controls.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top