Solved

Custom Button Column in DataGrid

Posted on 2003-11-18
5
507 Views
Last Modified: 2012-05-05
Anyone know how to add a Button column into a DataGrid within Windows Forms?  I don't want to use anyone else's Dll(RustomSoft has a great one).

Specifically I want a column that has data in it, but when you click on a cell it will run a query based on the row ID and display an informational window.

Let me know if you need more info.  Thanks.
0
Comment
Question by:coopey247
  • 2
  • 2
5 Comments
 
LVL 9

Expert Comment

by:tinchos
ID: 9772968
Hi coopey247

I've managed to accomplish taht, but in order to do so, I had to implement my own ButtonGridControlColumn class that inhertis from GridControlColumn.

This class is the one that is going to be responsible for handling the events of the button and it is the responsible for assuring that the button appears in the column.

I hope this helps and if you have any doubts regarding this issue, please let me know.

Tincho


0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 250 total points
ID: 9775843
0
 
LVL 2

Author Comment

by:coopey247
ID: 9778978
emor, I've love George Shepards site, but I couldn't find that section.  Let me give it a whirl and I'll let you know.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 9780523
it is question : 5.53 How do I display a column of buttons such as pushbuttons or combobox buttons?
0
 
LVL 2

Author Comment

by:coopey247
ID: 9796911
Thanks.  I couldn't get it to work just yet, but I'm close.  I'll let you know after thanksgiving(as well as divy out points), thankfully I have all of next week off.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question