?
Solved

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

Posted on 2013-11-30
2
Medium Priority
?
395 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 2000 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Suggested Courses

762 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