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

C#

 
GeneralRe: How to show a "Process with ..." entry in the File-Explorer context menu Pin
AlexZieg7123-Mar-07 12:47
AlexZieg7123-Mar-07 12:47 
QuestionActive Directory access Pin
Talal Sultan23-Mar-07 4:49
Talal Sultan23-Mar-07 4:49 
QuestionWeb, Dynamically Gridview creating Eventhandling Pin
peter.bellen@qsm-europe.com23-Mar-07 4:04
peter.bellen@qsm-europe.com23-Mar-07 4:04 
QuestionPrinting option Pin
netJP12L23-Mar-07 4:02
netJP12L23-Mar-07 4:02 
QuestionHelp with binding combo box and datarow column Pin
Matthew Cuba23-Mar-07 3:59
Matthew Cuba23-Mar-07 3:59 
AnswerRe: Help with binding combo box and datarow column Pin
joon vh.23-Mar-07 4:47
joon vh.23-Mar-07 4:47 
AnswerRe: Help with binding combo box and datarow column [modified] Pin
Zoltan Balazs23-Mar-07 5:49
Zoltan Balazs23-Mar-07 5:49 
AnswerRe: Help with binding combo box and datarow column Pin
Seishin#23-Mar-07 5:53
Seishin#23-Mar-07 5:53 
I suppouse the datarow is in a datatable..
if you have a datatable then you can bind it using BindingSource.
set the DataSource of the BindingSource object to the table object.
then set the DataSource of the ComboBox object to the BindingSource object and the DataMember and DisplayMember to proper column names from the table.

<br />
someBindingSource = new BindingSource();<br />
<br />
someBindingSource.DataMember = "tableName"; // if the table is in a dataset<br />
someBindingSource.DataSource = someDataTable; // or DataSet<br />
<br />
someComboBox.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", someBindingSource, "Column2name", true));<br />
someComboBox.DataSource = someBindingSource;<br />
someComboBox.DisplayMember = "Column1name";<br />
someComboBox.ValueMember = "Column2name";<br />
someComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;<br />


life is study!!!

Questionhow to load web page Pin
Saira Tanwir23-Mar-07 3:28
Saira Tanwir23-Mar-07 3:28 
AnswerRe: how to load web page Pin
MoustafaS23-Mar-07 3:31
MoustafaS23-Mar-07 3:31 
GeneralRe: how to load web page Pin
joon vh.23-Mar-07 4:44
joon vh.23-Mar-07 4:44 
GeneralRe: how to load web page Pin
Saira Tanwir23-Mar-07 6:34
Saira Tanwir23-Mar-07 6:34 
QuestionListview control flckering in .NET 2.0 Pin
pliu_200023-Mar-07 3:27
pliu_200023-Mar-07 3:27 
AnswerRe: Listview control flckering in .NET 2.0 Pin
sharad subedi14-Aug-11 18:36
sharad subedi14-Aug-11 18:36 
QuestionGlobal mutex under NT4 [Answered] Pin
Dan Neely23-Mar-07 3:19
Dan Neely23-Mar-07 3:19 
QuestionPOS Application Pin
Waskira23-Mar-07 3:15
Waskira23-Mar-07 3:15 
AnswerRe: POS Application Pin
joon vh.23-Mar-07 3:21
joon vh.23-Mar-07 3:21 
GeneralRe: POS Application Pin
Waskira23-Mar-07 3:55
Waskira23-Mar-07 3:55 
GeneralRe: POS Application Pin
joon vh.23-Mar-07 4:05
joon vh.23-Mar-07 4:05 
GeneralRe: POS Application Pin
Zoltan Balazs23-Mar-07 6:11
Zoltan Balazs23-Mar-07 6:11 
GeneralRe: POS Application Pin
joon vh.23-Mar-07 7:07
joon vh.23-Mar-07 7:07 
GeneralRe: POS Application Pin
Zoltan Balazs23-Mar-07 7:23
Zoltan Balazs23-Mar-07 7:23 
QuestionRegex Question: Match if absent Pin
matthias s.23-Mar-07 2:25
matthias s.23-Mar-07 2:25 
AnswerRe: Regex Question: Match if absent Pin
CPallini23-Mar-07 3:09
mveCPallini23-Mar-07 3:09 
GeneralRe: Regex Question: Match if absent Pin
matthias s.23-Mar-07 3:23
matthias s.23-Mar-07 3:23 

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.