Solved

Data Binding with label control

Posted on 2004-08-14
2
206 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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

10 Experts available now in Live!

Get 1:1 Help Now