Click here to Skip to main content
15,920,956 members
Home / Discussions / C#
   

C#

 
GeneralRe: Microsoft Web Browser Control Cookies Pin
kayhustle31-Aug-04 15:51
kayhustle31-Aug-04 15:51 
GeneralRe: Microsoft Web Browser Control Cookies Pin
Heath Stewart1-Sep-04 9:37
protectorHeath Stewart1-Sep-04 9:37 
Generalrectangle select Pin
hudhud31-Aug-04 10:15
hudhud31-Aug-04 10:15 
GeneralRe: rectangle select Pin
Christian Graus31-Aug-04 11:02
protectorChristian Graus31-Aug-04 11:02 
GeneralRe: rectangle select Pin
hudhud1-Sep-04 19:54
hudhud1-Sep-04 19:54 
GeneralRe: rectangle select Pin
Christian Graus2-Sep-04 10:13
protectorChristian Graus2-Sep-04 10:13 
QuestionHow to databind a CheckedListBox control Pin
abhishk2001@yahoo.com31-Aug-04 9:52
abhishk2001@yahoo.com31-Aug-04 9:52 
AnswerRe: How to databind a CheckedListBox control Pin
Heath Stewart31-Aug-04 12:03
protectorHeath Stewart31-Aug-04 12:03 
If you're trying to bind the actual list, you need to need to fill the Items property manually. Binding the Text only binds the Text property.

You should read about the DataBindings property and the BindingManagerBase class in the .NET Framework SDK.

The code you're doing above needs to bind to the Text property of the control for which the Binding is added (i.e., lstFacilityType). The rest of your expressions won't work, however, because the Binding only works for PropertyManager, not to bind to an IListSource or IList, of which DataSet and DataTable are (respectively). When you bind to a data-bound control like a DataGrid, it nows how to use the DataSource and, optionally, the DataMember to enumerate the collection and bind a UI element to that row. Binding how you're doing it is not the same. The results you're getting are to be expected since you're binding against an object, not its value.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralDrag and drop between two treeview Pin
teomanx31-Aug-04 9:21
teomanx31-Aug-04 9:21 
GeneralRe: Drag and drop between two treeview Pin
Heath Stewart31-Aug-04 11:49
protectorHeath Stewart31-Aug-04 11:49 
General"see" tag not rendered Pin
Gary Hyslop at home31-Aug-04 9:09
Gary Hyslop at home31-Aug-04 9:09 
GeneralRe: "see" tag not rendered Pin
Heath Stewart31-Aug-04 11:32
protectorHeath Stewart31-Aug-04 11:32 
GeneralNested Tree Nodes At Run Time Pin
MohamedShehab31-Aug-04 8:17
MohamedShehab31-Aug-04 8:17 
GeneralRe: Nested Tree Nodes At Run Time Pin
LongRange.Shooter1-Sep-04 8:08
LongRange.Shooter1-Sep-04 8:08 
GeneralMailMessage headers Pin
simrang31-Aug-04 6:55
simrang31-Aug-04 6:55 
GeneralRe: MailMessage headers Pin
Heath Stewart31-Aug-04 7:14
protectorHeath Stewart31-Aug-04 7:14 
GeneralRe: MailMessage headers Pin
simrang31-Aug-04 10:47
simrang31-Aug-04 10:47 
GeneralRe: MailMessage headers Pin
Heath Stewart31-Aug-04 11:29
protectorHeath Stewart31-Aug-04 11:29 
GeneralRe: MailMessage headers Pin
Dave Kreskowiak31-Aug-04 10:39
mveDave Kreskowiak31-Aug-04 10:39 
GeneralRe: MailMessage headers Pin
simrang31-Aug-04 10:46
simrang31-Aug-04 10:46 
GeneralRe: MailMessage headers Pin
Sebastian Schneider1-Sep-04 22:43
Sebastian Schneider1-Sep-04 22:43 
QuestionHuh? Can this be logical? Pin
Jerry Hammond31-Aug-04 6:24
Jerry Hammond31-Aug-04 6:24 
AnswerRe: Huh? Can this be logical? Pin
Steven Campbell31-Aug-04 6:32
Steven Campbell31-Aug-04 6:32 
GeneralRe: Huh? Can this be logical? Pin
leppie31-Aug-04 6:38
leppie31-Aug-04 6:38 
GeneralRe: Huh? Can this be logical? Pin
Christian Graus31-Aug-04 11:05
protectorChristian Graus31-Aug-04 11:05 

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.