HI,
I want to put several DataGridViewComboBox (which map their own
datatable) into a DataGridView. Different Rows of DataGridView will load
their own DataGridViewComboBox.
is it possible to do so?
// blockList, cSubjectGroupList, subjectGroupList are DataTable
foreach (DataRow blockRow in blockList.Rows)
{
DataGridViewComboBoxColumn column = new DataGridViewComboBoxColumn();
column.DataSource = cSubjectGroupList;
column.ValueMember =
subjectGroupList.Columns["Subject_Group"].ToString();
column.DisplayMember =
subjectGroupList.Columns["Subject_Group"].ToString();
column.Name = blockRow["Block"].ToString();
dataTable1.Columns.Add(blockRow["Block"].ToString());
column.DataPropertyName = blockRow["Block"].ToString();
dataGridView1.Columns.Add(column);
}
dataGridView1.DataSource = dataTable1
jkricka - 29 Apr 2008 12:34 GMT
> HI,
>
[quoted text clipped - 24 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
I think not. I had same problem which we solved by positioning regular
combo box on datagridview cell dynamically :)