Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: comobox.SelectedValue Pin
Brett Slaski11-Oct-04 7:22
Brett Slaski11-Oct-04 7:22 
GeneralRe: comobox.SelectedValue Pin
webhay11-Oct-04 7:32
webhay11-Oct-04 7:32 
GeneralRe: comobox.SelectedValue Pin
Alex Korchemniy11-Oct-04 9:24
Alex Korchemniy11-Oct-04 9:24 
GeneralRe: comobox.SelectedValue Pin
Brett Slaski11-Oct-04 10:33
Brett Slaski11-Oct-04 10:33 
GeneralRe: comobox.SelectedValue Pin
webhay11-Oct-04 11:36
webhay11-Oct-04 11:36 
GeneralRe: comobox.SelectedValue Pin
Anonymous11-Oct-04 15:50
Anonymous11-Oct-04 15:50 
GeneralRe: comobox.SelectedValue Pin
webhay12-Oct-04 3:48
webhay12-Oct-04 3:48 
GeneralRe: comobox.SelectedValue Pin
Brett Slaski12-Oct-04 4:05
Brett Slaski12-Oct-04 4:05 
webhay wrote:
combobox.DataSource = ds.Tables[0];
combobox.DisplayMember = ds.Tables[0].Columns["Client_Name"].ToString();
combobox.ValueMember = ds.Tables[0].Columns["Client_ID"].ToString();


You are not properly binding your combobox. Try this:
combobox.DataSource = ds;
combobox.DisplayMember = "TableName.Client_Name";
combobox.ValueMember = "TableName.Client_ID";

Note it is not recomended to use `ds.TableName' for the datasource.
GeneralRe: comobox.SelectedValue Pin
webhay12-Oct-04 14:02
webhay12-Oct-04 14:02 
GeneralRe: comobox.SelectedValue Pin
webhay12-Oct-04 14:05
webhay12-Oct-04 14:05 
GeneralWriting TreeView Contents To XML Pin
enchantingdb11-Oct-04 3:15
enchantingdb11-Oct-04 3:15 
GeneralRe: Writing TreeView Contents To XML Pin
Alex Korchemniy11-Oct-04 9:17
Alex Korchemniy11-Oct-04 9:17 
Questionhow to swap two tree nodes?? Pin
khchan11-Oct-04 1:35
khchan11-Oct-04 1:35 
AnswerRe: how to swap two tree nodes?? Pin
J4amieC11-Oct-04 3:03
J4amieC11-Oct-04 3:03 
QuestionHow to make C# application run on win2000 and WinMe and Win98? Pin
momer11-Oct-04 1:23
momer11-Oct-04 1:23 
AnswerRe: How to make C# application run on win2000 and WinMe and Win98? Pin
Anonymous11-Oct-04 1:36
Anonymous11-Oct-04 1:36 
AnswerRe: How to make C# application run on win2000 and WinMe and Win98? Pin
J4amieC11-Oct-04 2:53
J4amieC11-Oct-04 2:53 
GeneralRe: How to make C# application run on win2000 and WinMe and Win98? Pin
Colin Angus Mackay11-Oct-04 3:12
Colin Angus Mackay11-Oct-04 3:12 
AnswerRe: How to make C# application run on win2000 and WinMe and Win98? Pin
Gary Thom11-Oct-04 3:04
Gary Thom11-Oct-04 3:04 
GeneralRe: How to make C# application run on win2000 and WinMe and Win98? Pin
Anonymous11-Oct-04 6:42
Anonymous11-Oct-04 6:42 
GeneralRe: How to make C# application run on win2000 and WinMe and Win98? Pin
Dave Kreskowiak11-Oct-04 7:50
mveDave Kreskowiak11-Oct-04 7:50 
GeneralRe: How to make C# application run on win2000 and WinMe and Win98? Pin
momer11-Oct-04 15:17
momer11-Oct-04 15:17 
Generalhelp tifaa memory problem Pin
tifa11-Oct-04 0:39
tifa11-Oct-04 0:39 
GeneralRe: help tifaa memory problem Pin
Dave Kreskowiak11-Oct-04 6:28
mveDave Kreskowiak11-Oct-04 6:28 
Generalhexedecimal in C# Pin
mitreviper11-Oct-04 0:31
mitreviper11-Oct-04 0:31 

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.