madani
New member
- Joined
- Aug 3, 2019
- Messages
- 1
- Programming Experience
- Beginner
In my program I have some combobox with variable number(depends on user choice) in first two rows of a datagrid view. Now I want to add item and work with them in other classes but I don't have access to them because I don't know how to call them before creating?(they are been created during runtime)
//this is how I create them:
for (int j = 0; j < columncount; j++)
{
dataGridView1.Rows.Cells[j] = new DataGridViewComboBoxCell();
}
//this is how I create them:
for (int j = 0; j < columncount; j++)
{
dataGridView1.Rows.Cells[j] = new DataGridViewComboBoxCell();
}