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

Specify Color of PushButton on a cell of DataGrid

Thread ID:





52369 Nov 27,2006 06:51 PM UTC Nov 28,2006 04:43 AM UTC WinForms 1
Tags: GridControl
Asked On November 27, 2006 06:51 PM UTC


I have been trying to solve this issue for quite some time.

I have a SuncFusion Grid Control.

I am creating a distict button in each cell of the grid.

I am able to set some properties like CellType,CellAppearance and Description.

However, I am unable to figure out how to specify the color of the PushButton.

If we say something like GridControl[RowIndex,ColIndex].BackColor, then it defines the color of the cell per se and not the PushButton.

One approach is to define a PushButton type calss and implement some method to specify the color.

However, I am sure there must be a much easier and direct way to implement the same.

Please advise.

Here is the code snippet:

for (j = 1 ; j <= gridCounter ; j++ )
syncGridControl[i,j].CellType = "PushButton";
syncGridControl[i,j].CellAppearance = GridCellAppearance.Raised;
syncGridControl[i,j].Description = arCatList[counter].ToString();
syncGridControl.CellButtonClicked +=new GridCellButtonClickedEventHandler(syncGridControl_CellButtonClicked);
counter = counter + 1;

Himanshu Kumar

Administrator [Syncfusion]
Replied On November 28, 2006 04:43 AM UTC

Hi Himanshu,

I have responded to your original post.



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

or the page will be automatically redirected to 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