|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
listbox datatable selected itemI havea listbox bound to a datatable. When the form loads it thinks
the first item is selected. Is there anyway to tell the listbox when it loads not to select the first time automatically? In the form's Load event handler:
Fill the DataTable Set the SelectedIndex property of the ListBox to -1 Add the desired event handlers to the corresponding events of the ListBox In this case Do NOT 'wire' up the event handlers for the ListBox at design time. Show quoteHide quote "cptkirkh" <kh***@scic.com> wrote in message news:1167345494.375587.39650@i12g2000cwa.googlegroups.com... >I havea listbox bound to a datatable. When the form loads it thinks > the first item is selected. Is there anyway to tell the listbox when > it loads not to select the first time automatically? >
working with Access in VB.Net
When to use AndAlso vs And ? Trying to get started with tables... Binary Search Tree - CompareTo Error Waiting for a process to halt before continuing how to check if the dataset is EOF or if a record exists frist . How do I handle a NULL XmlElement? Get spawned process GotFocus versus PreviewKeyDown or Other Change Connection String during runtime |
|||||||||||||||||||||||