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

Thread ID:

Created:

Updated:

Platform:

Replies:

37029 Nov 15,2005 03:43 AM UTC Nov 15,2005 05:11 AM UTC WinForms 1
loading
Tags: GridControl
Lawrence Karasek
Asked On November 15, 2005 03:43 AM UTC

Using v.3.0.1.1 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 05:11 AM UTC

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

CONFIRMATION

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.

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

;