473,394 Members | 1,715 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,394 software developers and data experts.

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 3952
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: TPSreport | last post by:
ASP.NET 2003. Two DataGrids, six columns each, one grid atop the other. I need to have the columns line up, i.e., DataGrid1 Col(1) lined up w/ DataGrid2 Col(1) - each the same width on the...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
1
by: Conawapa11 | last post by:
I'm having trouble figuring this problem out and every example out there deals with simple objects within a custom collection. Take this example: public class ComplexClass { private int id;...
2
by: Jay Walker | last post by:
I created a custom DataGridColumn based on Marcie Robillard's MSDN Article: Creating Custom Columns for the ASP.NET Datagrid...
7
by: Jed | last post by:
I have a web service method that returns an array of custom objects marked serializeable with fully described public properties. When I bind the results to a DataGrid I can access the properties...
3
by: david | last post by:
I have posted my question before. It seems that I can not find the solution. The question: I have datasource, say, ds which is bounded to a datagrid, dg. Assume that ds have 5 columns,...
1
by: sianan | last post by:
I tried to use the following example, to add a checkbox column to a DataGrid in an ASP.NET application: http://www.codeproject.com/aspnet/datagridcheckbox.asp For some reason, I simply CAN'T get...
6
by: Bob The Builder | last post by:
I have a custom-built datagrid for windows forms. I overrode the scrollbars in it because I wanted to draw my own (basically, they're skinned). As a result, I handle all scroll events and calls. ...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.