P
Przemek M. Zawada
Dear Group,
I'm developing sample window form, using DataGridView control, which
is filled with data through BindingSource, which is based on type of
object, as follow:
public sampleClass
{
public int itemNumber;
public string itemName;
public string itemCategory;
public bool itemActive;
public int ItemNumber
{
get { return itemNumber; }
set { itemNumber = value; }
}
public string ItemName
{
get { return itemName; }
set { itemName = value; }
}
public string ItemCategory
{
get { return itemCategory; }
set { itemCategory = value; }
}
public bool ItemActive
{
get { return itemActive; }
set { itemActive = value; }
}
}
So, everything seems to work perfect, the 'ItemActive'
DataGridViewCell is checkbox (as required), but the problem is when
I'd like to insert a ComboBox (DropDownList type) into a sample cell.
I have no idea how to do it through the object binding system - in the
matter of fact, is it even possible? Or the only way is through
creating step by step all DataGridView columns?
If any tutorial found, which might help me a bit, don't hesitate
writing it down.
Thank you very much for any help.
All the best,
Przemek M. Zawada
I'm developing sample window form, using DataGridView control, which
is filled with data through BindingSource, which is based on type of
object, as follow:
public sampleClass
{
public int itemNumber;
public string itemName;
public string itemCategory;
public bool itemActive;
public int ItemNumber
{
get { return itemNumber; }
set { itemNumber = value; }
}
public string ItemName
{
get { return itemName; }
set { itemName = value; }
}
public string ItemCategory
{
get { return itemCategory; }
set { itemCategory = value; }
}
public bool ItemActive
{
get { return itemActive; }
set { itemActive = value; }
}
}
So, everything seems to work perfect, the 'ItemActive'
DataGridViewCell is checkbox (as required), but the problem is when
I'd like to insert a ComboBox (DropDownList type) into a sample cell.
I have no idea how to do it through the object binding system - in the
matter of fact, is it even possible? Or the only way is through
creating step by step all DataGridView columns?
If any tutorial found, which might help me a bit, don't hesitate
writing it down.
Thank you very much for any help.
All the best,
Przemek M. Zawada