Solved

Custom Button Column in DataGrid

Posted on 2003-11-18
5
513 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 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

622 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