Specify Color of PushButton on a cell of DataGrid

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

1 Reply

AD Administrator Syncfusion Team November 28, 2006 04:43 AM UTC

Hi Himanshu,

I have responded to your original post.

Thanks,
Haneef

Loader.
Up arrow icon