Solved

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

Posted on 2013-11-30
2
383 Views
Last Modified: 2013-12-22
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
Comment
Question by:Sreejithsid
2 Comments
 
LVL 15

Accepted Solution

by:
ChloesDad earned 500 total points
ID: 39687477
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
 

Author Comment

by:Sreejithsid
ID: 39735183
Thanks for your help.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question