Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
AnswerRe: Filter a Large Datagrid Pin
kubben2-Apr-07 8:30
kubben2-Apr-07 8:30 
GeneralRe: Filter a Large Datagrid Pin
Brad Wick2-Apr-07 12:35
Brad Wick2-Apr-07 12:35 
QuestionDeployment Visual Studio 2005 Error Pin
laura13162-Apr-07 7:30
laura13162-Apr-07 7:30 
Questiontesting of Stored Procedure Pin
sreecahitu2-Apr-07 6:53
sreecahitu2-Apr-07 6:53 
AnswerRe: testing of Stored Procedure Pin
Colin Angus Mackay2-Apr-07 7:15
Colin Angus Mackay2-Apr-07 7:15 
QuestionHow to draw a Horizantal line in WindowsApp Pin
pashitech2-Apr-07 6:23
pashitech2-Apr-07 6:23 
AnswerRe: How to draw a Horizantal line in WindowsApp Pin
maryamf2-Apr-07 9:06
maryamf2-Apr-07 9:06 
QuestionComboBox and BindingSource Pin
mihksoft2-Apr-07 6:15
mihksoft2-Apr-07 6:15 
Hello. I have a problem and I hope you can help me.
I have the two classes below.

public class MyObject
{
int _id;

public int Id
{
get { return _id; }
set { _id = value; }
}

string _name;

public string Name
{
get { return _name; }
set { _name = value; }
}
}

public class MyClass
{
MyObject _object;

public MyObject Object
{
get { return _object; }
set { _object = value; }
}
}


In my program I do that:

MyClass m = new MyClass();

private void Form1_Load(object sender, EventArgs e)
{
bindingSource1.DataSource = m;
}

and I create a comboBox and set his DataBinding to the "bindingSource1 - Object".
I populated the comboBox with Items.
My questions are: How can I populate the ComboBox with the Object, and when I select a Item from comboBox, that is a Name, he must give to me the Id for that Name.

10x Smile | :)
QuestionLimit number of copies of application to 1 Pin
polishprogrammer2-Apr-07 6:11
polishprogrammer2-Apr-07 6:11 
AnswerRe: Limit number of copies of application to 1 Pin
pbraun2-Apr-07 6:52
pbraun2-Apr-07 6:52 
QuestionHow to add a LabelCotrol to A DATAGRIDVIEW Pin
pashitech2-Apr-07 5:59
pashitech2-Apr-07 5:59 
QuestionMdi menus Pin
netJP12L2-Apr-07 5:32
netJP12L2-Apr-07 5:32 
AnswerRe: Mdi menus Pin
Stefan Troschuetz2-Apr-07 8:28
Stefan Troschuetz2-Apr-07 8:28 
Questionmanipulating request headers for a service call Pin
jhinze2-Apr-07 5:15
jhinze2-Apr-07 5:15 
QuestionClient Server Programming Pin
SakthiSurya2-Apr-07 3:55
SakthiSurya2-Apr-07 3:55 
AnswerRe: Client Server Programming Pin
Judah Gabriel Himango2-Apr-07 4:56
sponsorJudah Gabriel Himango2-Apr-07 4:56 
GeneralRe: Client Server Programming Pin
SakthiSurya2-Apr-07 18:21
SakthiSurya2-Apr-07 18:21 
QuestionFriends need help here! SQL Pin
krajah102-Apr-07 3:49
krajah102-Apr-07 3:49 
AnswerRe: Friends need help here! SQL Pin
joon vh.2-Apr-07 3:53
joon vh.2-Apr-07 3:53 
GeneralRe: Friends need help here! SQL Pin
krajah102-Apr-07 4:50
krajah102-Apr-07 4:50 
GeneralRe: Friends need help here! SQL Pin
joon vh.2-Apr-07 4:54
joon vh.2-Apr-07 4:54 
GeneralRe: Friends need help here! SQL Pin
krajah102-Apr-07 5:11
krajah102-Apr-07 5:11 
QuestionUsing Regular Expression Pin
nasambur2-Apr-07 3:42
nasambur2-Apr-07 3:42 
AnswerRe: Using Regular Expression Pin
althamda2-Apr-07 3:51
althamda2-Apr-07 3:51 
GeneralRe: Using Regular Expression Pin
nasambur2-Apr-07 3:53
nasambur2-Apr-07 3:53 

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.