Click here to Skip to main content
15,917,642 members
Home / Discussions / C#
   

C#

 
GeneralRe: Stock Market Simulation Pin
8raker11-Jan-05 1:17
8raker11-Jan-05 1:17 
GeneralRe: Stock Market Simulation Pin
Colin Angus Mackay11-Jan-05 1:52
Colin Angus Mackay11-Jan-05 1:52 
GeneralSyncronize Windows Forms DataGrid with DataSet Pin
epinaud10-Jan-05 11:01
epinaud10-Jan-05 11:01 
GeneralRe: Syncronize Windows Forms DataGrid with DataSet Pin
Heath Stewart10-Jan-05 19:54
protectorHeath Stewart10-Jan-05 19:54 
Generalproblem in opening a web application project Pin
panky_710-Jan-05 10:56
panky_710-Jan-05 10:56 
GeneralRe: problem in opening a web application project Pin
panky_710-Jan-05 12:02
panky_710-Jan-05 12:02 
GeneralRe: problem in opening a web application project Pin
Heath Stewart10-Jan-05 20:03
protectorHeath Stewart10-Jan-05 20:03 
GeneralRe: Missing / searching 2nd DataItem as independant index in list/combobox Pin
Rob Graham10-Jan-05 10:56
Rob Graham10-Jan-05 10:56 
from MSDN:

A ListItem control represents an individual data item within a data-bound list control, such as a ListBox or a RadioButtonList control.

There are several ways to specify the text displayed for an item in the list control.
 The most common method is by placing text in the inner HTML content. The inner HTML content is the text between the opening and closing tags of the ListItem control.
 You can also use the Text property to specify the text displayed in the list control for the item.

The Value property allows you to associate a value with the item in the list control, in addition to the text displayed in the control.
 For example, you can display text for an item in the list control,
 such as "Item 1", and use the Value property to specify a value for that item,
 such as "$1.99".


Which applies to the webforms control.

For the windows forms listbox, you can add any object to its 'Items' collection. The text in the listbox is by default the result of the ToString() method for the added object (which could also have any other public properties such as your index). You can also specify the source of the test in the DisplayMember propery of the ListBox itself (the name of the public string property of your list objects that should be displayed as the text). The ComboBox control works similarly, since it also derives from ListControl.



Why would anyone waste time arguing with an accountant about anything? Their sole function is to record what happenned, and any higher aspirations are mere delusions of grandeur. On the ladder of productive contributions they are the little rubber pads at the bottom that keep the thing from sliding out from under you. - Roger Wright
GeneralDeleting a Row from a DataSet in a DataGrid Pin
joschmo8010-Jan-05 9:08
joschmo8010-Jan-05 9:08 
GeneralRe: Deleting a Row from a DataSet in a DataGrid Pin
DougW4810-Jan-05 15:36
DougW4810-Jan-05 15:36 
GeneralRe: Deleting a Row from a DataSet in a DataGrid Pin
Heath Stewart10-Jan-05 20:09
protectorHeath Stewart10-Jan-05 20:09 
GeneralRe: Deleting a Row from a DataSet in a DataGrid Pin
joschmo8011-Jan-05 1:56
joschmo8011-Jan-05 1:56 
GeneralAccess Security for window based Pin
caheo10-Jan-05 8:48
caheo10-Jan-05 8:48 
GeneralRe: Access Security for window based Pin
Heath Stewart10-Jan-05 20:14
protectorHeath Stewart10-Jan-05 20:14 
QuestionHow to create a typed DataSet at run-time without type definition files (.xsd or .dtd)? Pin
huckfinn10-Jan-05 7:30
huckfinn10-Jan-05 7:30 
Generalcomparing arrays Pin
sciamachy10-Jan-05 6:50
sciamachy10-Jan-05 6:50 
GeneralRe: comparing arrays Pin
Judah Gabriel Himango10-Jan-05 8:01
sponsorJudah Gabriel Himango10-Jan-05 8:01 
QuestionCan I use webservice to download a file to my local app? Pin
Joshscorp10-Jan-05 6:46
Joshscorp10-Jan-05 6:46 
AnswerRe: Can I use webservice to download a file to my local app? Pin
Judah Gabriel Himango10-Jan-05 8:06
sponsorJudah Gabriel Himango10-Jan-05 8:06 
GeneralRe: Can I use webservice to download a file to my local app? Pin
Joshscorp10-Jan-05 12:44
Joshscorp10-Jan-05 12:44 
GeneralRe: Can I use webservice to download a file to my local app? Pin
Judah Gabriel Himango11-Jan-05 3:56
sponsorJudah Gabriel Himango11-Jan-05 3:56 
GeneralAssembly Path Pin
Wender Oliveira10-Jan-05 5:22
Wender Oliveira10-Jan-05 5:22 
GeneralScreen Capture Pin
Amy Yang10-Jan-05 4:13
Amy Yang10-Jan-05 4:13 
GeneralRe: Screen Capture Pin
Nick Parker10-Jan-05 5:53
protectorNick Parker10-Jan-05 5:53 
GeneralRe: Screen Capture Pin
Amy Yang10-Jan-05 16:58
Amy Yang10-Jan-05 16:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.