combobox select item
I have my 开发者_开发知识库combobox
is filling from dgv
on form load everything is ok, but i want to focus that value which i will provied.
For example:
If my combobox contains 2 , 3 , 4, 5 when form load and combo box filling is end i want to first value was 4.
How i can do that?
Set the SelectedIndex
property.
Using the SelectedValue property is probably better as it selected based on the value of the combo. SelectedIndex selects based on the Ordinal position instead of the actual value.
精彩评论