Vlado,
You might be able to access this functionality. What you want to do is
decorate your class with the appropriate attributes indicating the designer
and other specifics about the design-time experience of your grid.
What I would do is take a look in Reflector at the attributes that are
on the DataGrid class, then duplicate them for your own (I don't recall if
the designer attributes are inheritable).
Also, check out the following articles in MSDN magazine about providing
functionality in the design-time experience:
Building Windows Forms Controls and Components with Rich Design-Time
Features
http://msdn.microsoft.com/msdnmag/is...s/default.aspx
Building Windows Forms Controls and Components with Rich Design-Time
Features, Part 2
http://msdn.microsoft.com/msdnmag/is...s/default.aspx
Simplify UI Development with Custom Designer Actions in Visual Studio
http://msdn.microsoft.com/msdnmag/is...s/default.aspx
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Vlado Brlečić" <vl***********@sk.t-com.hr> wrote in message
news:d9**********@ss405.t-com.hr...
Hi everyone,
I would like to add a new designer verb to DataGrid's menu, next to the
"Auto Format". So, I inherited a DataGrid and I made a new designer for
MyDataGrid hoping everything is gonna be alright. Now I have a new
designer
verb but "Auto Format" is gone. I was thinking that base DataGrid would
somehow keep its designer.
Is it possible to make this easy way (which is the easy way?) or I have to
try to simulate (copy) DataGrid's AutoFormat functionality or this is not
possible at all?
TIA
Vlado