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 Pushbutton to GridControl Cell

Thread ID:





37029 Nov 14,2005 10:43 PM Nov 15,2005 12:11 AM Windows Forms 1
Tags: GridControl
Lawrence Karasek
Asked On November 14, 2005 10:43 PM

Using v. GridControl, I am trying to add a clickable button to a cell. I am generating the rows and cells dynamically at run time. The button is not appearing at all. What do I need to do? I set the column type to "PushButton" then at run time I create a GridInfo and set the cell. GridStyleInfo info = new GridStyleInfo(); info.CellType = "PushButton"; info.Text = "Click"; info.CellValueType = typeof(string); I then add the cell to the grid control with the index of the row and column: GridControl.SetCellInfo(gridPoint.RowIndex, col, info, StyleModifyType.Override); thanks Lawrence

Administrator [Syncfusion]
Replied On November 15, 2005 12:11 AM

Hi Lawrence, Please try this code GridStyleInfo info = new GridStyleInfo(); info.CellType = "PushButton"; info.Description = "Click"; info.CellValueType = typeof(string); gridControl1.SetCellInfo(5,3, info, Syncfusion.Styles.StyleModifyType.Override); this.gridControl1.Refresh(); Here is a sample for implementing it pushButton1.zip Let me know if you need any further assistance. Regards, Haneef


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.