Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32059

Load Items Of ComboBox into DataGridViewComboBoxColumn

$
0
0

hello

i have a comboBox that gets Items from database . i wanna put it's items into a DataGridViewComboBoxColumn . i use this cod but Second Foreach dosn't work.

foreach (DataGridViewRow row in dvg.Rows)
{

   foreach (string item in ComboBox1.Items)
     {

((DataGridViewComboBoxCell)row.Cells[4]).Items.Add(item);

      }

}

 

 

 

 


Viewing all articles
Browse latest Browse all 32059

Trending Articles