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.
Unfortunately, activation email could not send to your email. Please try again.

Adding a button coloumn

Thread ID:





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

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 05:08 PM

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

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

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.

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.