Datagridview comboboxcolumn question
-
Hi, I have a basice question. Im showing some data in datagridview control. One of the columns is of the type combobox. When populating this combobx with data, i want that the first item is selected. How can i do that? Thanks.
-
Hi, I have a basice question. Im showing some data in datagridview control. One of the columns is of the type combobox. When populating this combobx with data, i want that the first item is selected. How can i do that? Thanks.
Hi, After you have initialized the combo box with values try using this :
[combo_box_name].SelectedItem = [value];
. (without the brackets):) It works for me. Is this what you were asking? Regards, Alex
-
Hi, After you have initialized the combo box with values try using this :
[combo_box_name].SelectedItem = [value];
. (without the brackets):) It works for me. Is this what you were asking? Regards, Alex
Combobox.SelectedIndex = 0;
is more accurate. As well as check if Combobox have items. egif(Combobox.Items.Count != 0)
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can