DataGridViewComboBoxColumn set default value?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hai, i got a datagridview and i need to add a DataGridViewComboBoxColumn by programmatically. <br/>Below is my code :<br/><br/>                    DataGridViewComboBoxColumn objClearance = new DataGridViewComboBoxColumn();<br/>                    objClearance.Items.Add("0");<br/>                    objClearance.Items.Add("1");<br/>                    objClearance.Items.Add("2");<br/>                    objClearance.Items.Add("3");<br/><br/>In normal combobox i use comboboxA.selectedindex = 0; to set its default value.<br/>But how i going to set the default item for DataGridViewComboBoxColumn?<br/><br/>Thanks!

View the full article
 
Back
Top