Click here to Skip to main content
15,905,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I have design a windows application form, in this I have a label and a button associated with this. I have 10 rows(it may be increase or decrease i.e. dynamic) in my database which contain items name. Now I want to display all the item names at run time i.e. automatically increase or decrese the number of labels according to database(i.e. if there are 10 items in database then it will show 10 item names, if there are 15 items then it will show 15 items) at run time like we do in ASP.net to bind that label with database.
But how to do it in windows application form.

Thanks.
Posted

1 solution

Hi,

You could use DataRepeater control in win form applications.

Data Repeater Control in Windows Applications[^]
http://msdn.microsoft.com/en-us/library/cc425007%28v=vs.80%29.aspx[^]

Good Luck
 
Share this answer
 
Comments
Priyanka Bhawsar 1-Apr-14 1:43am    
Thanks, but I have data in json formate and I have used the serialize/de-serialized method to convert it into c#.So how I can use Data Repeater ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900