We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Adding a button coloumn

Thread ID:





90780 Oct 16,2009 09:05 PM UTC Oct 19,2009 10:51 AM UTC ASP.NET Web Forms (Classic) 2
Tags: Grouping
Jason Lui
Asked On October 16, 2009 09:05 PM UTC

Is there a way to add a column of all buttons? I want to have an 'On' and 'Off' button for each row. If so, how can I hook into the on click event?

Jason Lui
Replied On October 16, 2009 09:08 PM UTC

I apologize, I've been asking on the wrong forum. Should be in window forms.

Jisha Joy [Syncfusion]
Replied On October 19, 2009 10:51 AM UTC

Hi Jason,

Thank you for posting query to us.

You could make a column of type button by setting the CellType to PushButton. you could catch the button click on CellButtonClicked event of GridControl.

this.gridControl1.ColStyles[2].CellType = "PushButton";
this.gridControl1.CellButtonClicked += new Syncfusion.Windows.Forms.Grid.GridCellButtonClickedEventHandler(gridControl1_CellButtonClicked);

void gridControl1_CellButtonClicked(object sender, Syncfusion.Windows.Forms.Grid.GridCellButtonClickedEventArgs e)
//Your code here

Please let me know if this helps.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon