Solved

Data Binding with label control

Posted on 2004-08-14
2
217 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
[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
 

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

688 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