473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

DataGridDesigner

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
Nov 17 '05 #1
1 977
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

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.