Adding custom columns tot the Datagrid Property builder

  • Thread starter Thread starter The_Rave
  • Start date Start date
T

The_Rave

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
 
This article shows how to accomplish this:
http://www.microsoft.com/belux/nl/msdn/community/columns/jtielens/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
 
Back
Top