?
Solved

Data Binding with label control

Posted on 2004-08-14
2
Medium Priority
?
219 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 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

765 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