Solved

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

Posted on 2013-11-30
2
387 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
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…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

733 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