• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 403
  • Last Modified:

In Winform, how to Create checkbox and combo box in the same row dynamically

I want to display a user's details in a winform. The details need to be populated in separate rows, during runtime. Each row must contain a string data (say data1 and this fetched as a list from database eg: it has 10 rows), 5 checkboxes (they are checked/unchecked based on the data stored in DB) and a combo box (this combo box is populated based on data1). So there should be 10 rows, each with data1, 5 checkboxes and a combo box.

Can anyone please suggest some ideas?
0
Sreejithsid
Asked:
Sreejithsid
1 Solution
 
ChloesDadCommented:
The best way would be to create a user control that has the necessary controls for one row. You can then add the user control the correct number of times to a panel. This can then have a scroll bar to scroll up and down the list if there are more than can be displayed on screen at once.

The user control can be passed the necessary data using either properties or by a parameter in the constructor.
0
 
SreejithsidAuthor Commented:
Thanks for your help.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now