i am binding a datagridview from custom datatable. i want a particular datacel to be of combo type. can it be done, if so how?
in the code snippet below, if the key == "somevalue", i want to create a row where the datarow[1] will be of combo type. can it be done?
private void UpdateDataTable(string key, object value) {
if(dt.Rows.Contains(key))
{
Debug.WriteLine("found row");
DataRow myrow = dt.Rows.Find( key);
myrow["Values"]= value;
}
else
{
dt.LoadDataRow(new object[] { key, value }, true);
}
dt.AcceptChanges();
}