Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created custom control which contains gridview and buttons,I want to to call it from gridview cell.
Posted
Updated 6-May-13 20:18pm
v2

1. you can not add custom control in datagridview
you should create a column of that type of custom control

2.
you can add custom control in button but you should use containers like panel, tabellayoutpanel
e.g.
C#
button1.Controls.Add(new MyCustomControl1());


Happy Coding!
:)
 
Share this answer
 
Comments
Roshan Bobade 7-May-13 5:28am    
Thanks
Aarti Meswania 7-May-13 5:30am    
Welcome!
Glad to help you! :)

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