Hi,
Can anybody give me the code to bind a comboBox in to a 2D array, in C#.
Also tell me if thats possible.
Regards,
Saurabh
ComboBox and 2D Array
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sebastian Banz8 reputationPosted Jun 29, 2006, 4:48 AM EDT
public
class ComboBoxItem{private string entry;
private string tag;
public ComboBoxItem(string entry, string tag){
this.entry = entry;
this.tag=tag;
} public string Entry{
get{
return this.entry;
}
} public string Tag{
get{
return this.tag;
}
}
public override string ToString(){
return entry;
}
}
Important is the ToString() Method, because the result will be shown in the comboBox.
Do you understand the idea?