Solved

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

Posted on 2013-11-30
2
377 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now