Hi all,
I've created a combobox column style for the datagrid control. It works fine
except of editing properties in the Visual Studio designer .
In particular I want to change the property DataSource at design time.
Have following code:
public class DataGridComboBoxColumn : DataGridColumnStyle
{
***
[
Category("Data"),
TypeConverter(typeof(System.Web.UI.Design.DataSourceConverter))
]
public object DataSource
{ get { return combo.DataSource; }
set { combo.DataSource = value; }
}
***
}
DataSource property really appears in the DataGridColumnStyle Collection
Editor but the dropdown box which should contain the list of datasources is
empty. Although there are several datasource objects in the form.
Does someone know how to populate the list of datasources in this case?
Any help is very much appreciated.
Vasyl
Rami Saad - 09 May 2004 13:11 GMT
Hello,
Having empty combobox could have one of the several reasons. How are you
populating the combobox? from dataset? did you fill the dataset?
Did you try to populate it dynamically, in the code? what happens if you do
so?
I would be glad to help you more. Tell me in more details about the
combobox filling.
Regards,
Rami Saad
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
Rami Saad - 11 May 2004 11:58 GMT
Hello,
Having empty combobox could have one of the several reasons. How are you
populating the combobox? from dataset? did you fill the dataset?
Did you try to populate it dynamically, in the code? what happens if you do
so?
I would be glad to help you more. Tell me in more details about the
combobox filling.
Regards,
Rami Saad
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC