G
Guest
I´ve got the follow scenario.
I load a combobox. like this.
combo.DataSource = ds.Tables(0);
combo.DisplayMember = "CITY";
combo.ValueMember = "ID_CITY";
after I must that someone find a city ...
Then now i got the ID_CITY, in this moment.
I would like to set the current index of combo to index where the
ValueMember as the same ID_CITY that i found.
I would like to positionate the Index to an any ID_CITY.
AFTER THAT I LOAD THAT DATASOURCE OF THIS COMBO. I JUST NEED FIND A ITEM AND
YOUR INDEX SEARCHING BY THE MENBERVALUE.
did you undestand?
has a way?
--
Se correto marque como tal
http://thespoke.net/blogs/dreampeppers99/default.aspx
Obrigado desde já a:
Israel Aece , Ricardo Oneda, Galante, Thiago J. Mônaco, Eder Nascimento e
outros
I load a combobox. like this.
combo.DataSource = ds.Tables(0);
combo.DisplayMember = "CITY";
combo.ValueMember = "ID_CITY";
after I must that someone find a city ...
Then now i got the ID_CITY, in this moment.
I would like to set the current index of combo to index where the
ValueMember as the same ID_CITY that i found.
I would like to positionate the Index to an any ID_CITY.
AFTER THAT I LOAD THAT DATASOURCE OF THIS COMBO. I JUST NEED FIND A ITEM AND
YOUR INDEX SEARCHING BY THE MENBERVALUE.
did you undestand?
has a way?
--
Se correto marque como tal
http://thespoke.net/blogs/dreampeppers99/default.aspx
Obrigado desde já a:
Israel Aece , Ricardo Oneda, Galante, Thiago J. Mônaco, Eder Nascimento e
outros