Solved

Custom Button Column in DataGrid

Posted on 2003-11-18
5
504 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
Comment Utility
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 69

Accepted Solution

by:
Éric Moreau earned 250 total points
Comment Utility
0
 
LVL 2

Author Comment

by:coopey247
Comment Utility
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 69

Expert Comment

by:Éric Moreau
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now