Click here to Skip to main content
15,921,793 members
Home / Discussions / C#
   

C#

 
Generaltooltip problem Pin
gulucay1-Jun-04 3:13
gulucay1-Jun-04 3:13 
QuestionPlease advice best TreeList controls for .NET ? Pin
vgrigor1-Jun-04 3:09
vgrigor1-Jun-04 3:09 
AnswerRe: Please advice best TreeList controls for .NET ? Pin
Heath Stewart1-Jun-04 6:27
protectorHeath Stewart1-Jun-04 6:27 
GeneralRe: Please advice best TreeList controls for .NET ? Pin
vgrigor1-Jun-04 22:01
vgrigor1-Jun-04 22:01 
GeneralRe: Please advice best TreeList controls for .NET ? Pin
Heath Stewart2-Jun-04 2:43
protectorHeath Stewart2-Jun-04 2:43 
GeneralRe: Please advice best TreeList controls for .NET ? Pin
vgrigor3-Jun-04 4:54
vgrigor3-Jun-04 4:54 
Generalproblems binding my combobox Pin
robmays1-Jun-04 1:16
robmays1-Jun-04 1:16 
GeneralRe: problems binding my combobox Pin
Heath Stewart1-Jun-04 6:24
protectorHeath Stewart1-Jun-04 6:24 
Programmatically set it. After setting your data source and binding your control, you can set the SelectedIndex to 0 or whatever index you want (based on where your would-be text is stored in the DataTable). This also depends on the DropDownStyle for the ComboBox. For the default - ComboBoxStyle.DropDown - SelectedText is only text that is selected - it does not necessary represent text in the ComboBox as an item. For example, if you typed some arbitrary text in your ComboBox and selected it, that would be the SelectedText. If you only want choices available to the user that are in your DataTable, then you should set ComboBox.DropDownStyle to ComboBoxStyle.DropDownList.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: problems binding my combobox Pin
robmays1-Jun-04 20:25
robmays1-Jun-04 20:25 
GeneralRe: problems binding my combobox Pin
Heath Stewart2-Jun-04 2:41
protectorHeath Stewart2-Jun-04 2:41 
QuestionHow to export dataset to excel Pin
wangjim1-Jun-04 0:42
wangjim1-Jun-04 0:42 
AnswerRe: How to export dataset to excel Pin
Dave Kreskowiak1-Jun-04 6:04
mveDave Kreskowiak1-Jun-04 6:04 
GeneralRe: How to export dataset to excel Pin
wangjim1-Jun-04 7:12
wangjim1-Jun-04 7:12 
GeneralRe: How to export dataset to excel Pin
Dave Kreskowiak1-Jun-04 7:18
mveDave Kreskowiak1-Jun-04 7:18 
GeneralRe: How to export dataset to excel Pin
wangjim1-Jun-04 17:59
wangjim1-Jun-04 17:59 
GeneralHighlighting a ListViewItem during drag-over Pin
Kiran Kamath31-May-04 23:01
Kiran Kamath31-May-04 23:01 
GeneralRe: Highlighting a ListViewItem during drag-over Pin
Heath Stewart1-Jun-04 6:19
protectorHeath Stewart1-Jun-04 6:19 
GeneralRe: Highlighting a ListViewItem during drag-over Pin
Kiran Kamath2-Jun-04 19:29
Kiran Kamath2-Jun-04 19:29 
GeneralGet Ip of Client Pin
hprahul31-May-04 22:52
hprahul31-May-04 22:52 
GeneralRe: Get Ip of Client Pin
Judah Gabriel Himango1-Jun-04 3:54
sponsorJudah Gabriel Himango1-Jun-04 3:54 
GeneralRe: Get Ip of Client Pin
Dave Kreskowiak1-Jun-04 4:25
mveDave Kreskowiak1-Jun-04 4:25 
GeneralDefaultButton Pin
Wizard_0131-May-04 22:49
Wizard_0131-May-04 22:49 
GeneralRe: DefaultButton Pin
Mazdak31-May-04 23:11
Mazdak31-May-04 23:11 
GeneralRe: Rich Text Box Pin
Johnnny31-May-04 18:36
Johnnny31-May-04 18:36 
GeneralRe: Rich Text Box Pin
Judah Gabriel Himango31-May-04 19:57
sponsorJudah Gabriel Himango31-May-04 19:57 

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.