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

GDBD question: How to add a button in a text cell?

Thread ID:





27223 Apr 7,2005 08:07 PM UTC Apr 7,2005 10:06 PM UTC WinForms 1
Tags: GridControl
Asked On April 7, 2005 08:07 PM UTC

I have a GDBD boound to a dataTable. Based on the user input, I need to inser a button for all the cells with ColIndex == 1. I try to implement this functionality in method gridModel_QueryCellInfo(). I realized that if I use e.Style.CellType = "PushButton"; the whole cell will become a button type, the text is missing. I also read the sample of EllipsisCell.cs, but this one needs to create a .bmp file. Is there any simple way to insert a button into a text cell?

Administrator [Syncfusion]
Replied On April 7, 2005 10:06 PM UTC

You can derive the GridStaticCellModel/GridStaticCellRenderer classes and add a button to your derived class. If you want it editable, derive GridTextBoxCellModel/Renderer instead of the Static cell. Here is a sample. http://www.syncfusion.com/Support/user/uploads/GC_test_5a8ae6f3.zip


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