Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Custom Button Column in DataGrid

Posted on 2003-11-18
5
Medium Priority
?
519 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 750 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

719 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