Solved

Data Binding with label control

Posted on 2004-08-14
2
208 Views
Last Modified: 2010-04-15
I am creating a report screen then look like this :

ItemName      Quantity              ItemName     Quantity
A                       1                          D                4
B                       2
C                       3
--End of Page--

The data is not store in the database. Supposely that my application gets the data from a list or array, how do I do a data binding ?
0
Comment
Question by:MyQ2004
2 Comments
 

Accepted Solution

by:
scottlundstrom earned 50 total points
ID: 11806314
An example of simple data binding would be like this.

//Create array
string[] testArray = {"test1","test2","test3"};

//Bind the array to the test properity of a label control
label1.databindings.add("Text",testArray,"");

Hope this helps
-Scott
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

15 Experts available now in Live!

Get 1:1 Help Now