P
PiyushC
Hi,
I am developing a web composite control using datagrid, dropdown,
linkbuttons etc.
Its basically an extension to datagrid control to provide more
functionality.
The control is derived from webcontrol.
The control has a property "Columns", which is a columns property of
datagrid.
Its definition is as follows :
public DataGridColumnCollection Columns
{
get
{
EnsureChildControls();
return dg.Columns;
}
}
dg being the datagrid instace.
There are couple of problems I am facing.
1. I am not able to edit the Columns property using property window.
It shows ... against properties, but when I click it, it opens the
form with Add as disabled.
I tried to apply DatagridColumnsCollectionEditor to Editor attribute,
but in that case it gives error as "Specified cast is not valid." Is
it because I am not deriving control from datarid ?
2. Another problem is that, I donot get the intellisense for Columns
property in HTML view. I have added the xsd file for my control & it
works fine for other properties.
Also, I can add columns in HTML view w/o intellisense & it works fine
in runtime, but I get an error in HTML view as active schema doesnot
support this property.
Can anybody please help me out on these issues.
Thanks in advance for your help & sorry for such long post.
Piyush
PS : I searched through net, but unable to find the answer. I am
facing this problem since long time, please help me out on this one.
I am developing a web composite control using datagrid, dropdown,
linkbuttons etc.
Its basically an extension to datagrid control to provide more
functionality.
The control is derived from webcontrol.
The control has a property "Columns", which is a columns property of
datagrid.
Its definition is as follows :
public DataGridColumnCollection Columns
{
get
{
EnsureChildControls();
return dg.Columns;
}
}
dg being the datagrid instace.
There are couple of problems I am facing.
1. I am not able to edit the Columns property using property window.
It shows ... against properties, but when I click it, it opens the
form with Add as disabled.
I tried to apply DatagridColumnsCollectionEditor to Editor attribute,
but in that case it gives error as "Specified cast is not valid." Is
it because I am not deriving control from datarid ?
2. Another problem is that, I donot get the intellisense for Columns
property in HTML view. I have added the xsd file for my control & it
works fine for other properties.
Also, I can add columns in HTML view w/o intellisense & it works fine
in runtime, but I get an error in HTML view as active schema doesnot
support this property.
Can anybody please help me out on these issues.
Thanks in advance for your help & sorry for such long post.
Piyush
PS : I searched through net, but unable to find the answer. I am
facing this problem since long time, please help me out on this one.