Solved

Custom Button Column in DataGrid

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reference issues in Visual Studio 3 41
Expression Evaluater 3 38
Release Dynamically Allocated Memory in C# 3 38
C# Formatting DateTime String Value 5 34
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 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