469,156 Members | 2,103 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,156 developers. It's quick & easy.

Adding custom columns tot the Datagrid Property builder

Hi everyone,

I'm trying to add my own template columns to the property builder of
..NET.
E.g. a checkbox column, or an image column.
But I can't find the sources of the wizard, or a way to add them to
the wizard, via add-in?
I tried to capture it with a macro, but all I can't get out of it is
the raise event of the wizard, nothing that happens during the wizard.
"
DTE.Commands.Raise("{29AAB322-2365-11D3-822F-006097DE50F5}", 8449,
Customin, Customout)
"
Someone knows how to add your own template columns to the property
builder of a datagrid?
I would be very thankfull....

tnx
Nov 15 '05 #1
1 3785
This article shows how to accomplish this:
http://www.microsoft.com/belux/nl/ms...ens/datagrid.m
spx
This article will describe how to extend the System.Windows.Forms.DataGrid
provided by the .NET Framework, with functionality to add
DataGridColumnStyles that can evaluate expressions and display the results
of those expressions. An additional requirement is that the rich design-time
experience like the default DataGrid must be available. So it must be easy
to add the new DataGridColumnStyle to a DataGrid using a designer. The
solution of this problem can be split into two parts: the expression engine
and the extended DataGrid. First of all we need to have something that can
evaluate expressions at runtime, so we will build an ExpressionEngine.
Secondly, we need a custom DataGridColumnStyle that uses the
ExpressionEngine. But building this DataGridColumnStyle alone will not
suffice; it will have to be integrated with the DataGrid itself to provide
design-time support in the designer. To obtain this, a custom DataGrid will
be built, supporting the new DataGridColumnStyle.

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
"The_Rave" <de*********@hotmail.com> wrote in message
news:e1**************************@posting.google.c om...
Hi everyone,

I'm trying to add my own template columns to the property builder of
.NET.
E.g. a checkbox column, or an image column.
But I can't find the sources of the wizard, or a way to add them to
the wizard, via add-in?
I tried to capture it with a macro, but all I can't get out of it is
the raise event of the wizard, nothing that happens during the wizard.
"
DTE.Commands.Raise("{29AAB322-2365-11D3-822F-006097DE50F5}", 8449,
Customin, Customout)
"
Someone knows how to add your own template columns to the property
builder of a datagrid?
I would be very thankfull....

tnx

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by TPSreport | last post: by
3 posts views Thread by Jim Heavey | last post: by
1 post views Thread by Conawapa11 | last post: by
7 posts views Thread by Jed | last post: by
3 posts views Thread by david | last post: by
6 posts views Thread by Bob The Builder | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.