G
Guest
Hi All,
I know that this question has been asked and I have found the thread that
discusses the solution but was not able to get the code for the fix.
I have subclassed a grid control and it all works great in runtime mode but
when add to the toolbox it is just grayed out. I added the following code
#if DESIGN
[ToolboxItemFilter("NETCF",ToolboxItemFilterType.Require),
ToolboxItemFilter("System.CF.Windows.Forms.DataGrid",
ToolboxItemFilterType.Custom)]
#endif
which enabled the control in the toolbox but when I added the control to a
form it went to the toolbar like a menu bar instead of displaying like a
normal grid object.
Any ideas please?
Thanks,
Chris.
I know that this question has been asked and I have found the thread that
discusses the solution but was not able to get the code for the fix.
I have subclassed a grid control and it all works great in runtime mode but
when add to the toolbox it is just grayed out. I added the following code
#if DESIGN
[ToolboxItemFilter("NETCF",ToolboxItemFilterType.Require),
ToolboxItemFilter("System.CF.Windows.Forms.DataGrid",
ToolboxItemFilterType.Custom)]
#endif
which enabled the control in the toolbox but when I added the control to a
form it went to the toolbar like a menu bar instead of displaying like a
normal grid object.
Any ideas please?
Thanks,
Chris.