By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,272 Members | 1,399 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,272 IT Pros & Developers. It's quick & easy.

Adding custom columns tot the Datagrid Property builder

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.