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.
Syncfusion Feedback

Specify Color of PushButton on a cell of DataGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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;
}

Regards,
Himanshu Kumar

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

Hi Himanshu,

I have responded to your original post.

Thanks,
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

;