Click here to Skip to main content
15,847,077 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have created a user control with one textbox and one button control. Now I want to add this control in my datagridview control in VB.Net. These user controls are placed in the datagridview with order one user control in one row.

If I have a loop through ten user controls than ten rows in datagridview create having user control in it.

I don't know how to solved it. Please help me.
Posted
Updated 21-Feb-11 1:17am
v5
Comments
m@dhu 21-Feb-11 2:15am    
As you are having only a textbox and button why don't you use in the gridview without the user control?
Sandeep Mewara 21-Feb-11 3:05am    
Not clear.

Further, title says 'custom control' and description 'user control', hope you the difference!
Albin Abel 21-Feb-11 3:06am    
is this is a windows form or web form? If it is a webform add your user control inside a item template and bind the user control controls in the RowBound event
Albin Abel 21-Feb-11 3:32am    
Yes there is a difference between custom and user control
kals84 21-Feb-11 4:01am    
ok..
my mistake..
actually this is user control and i am using windows form.

1 solution

 
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