Question multiple botton and textbox control in single datagridviewcell

md110

Member
Joined
Oct 14, 2008
Messages
11
Programming Experience
1-3
please help me
how to add datagridviewbottoncell and datagridviewtextboxcolumn in one cell
when click on cell show botton
 

Attachments

  • Untitled-3.gif
    Untitled-3.gif
    3.5 KB · Views: 30
Create your own UserControl that contains a TextBox and a Button. Create your own custom column and cell classes where each cell contains an instance of your UserControl. MSDN has an example of creating custom column/cell classes for the DataGridView.

How to: Host Controls in Windows Forms DataGridView Cells
 
thank jmcilhinney
i dont use usercontroll
please datagridviewbotton and datagridviewtextboxcell in one cell
 
i dont use usercontroll
Whether or not you have used a UserControl before is not relevant. There are no doubt lots of things you haven't done before. If you want to put two controls into a single grid cell then you will use a UserControl.
 
Back
Top