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. Image for the cookie policy date
close icon

To Change Cell Font color and Bold

hi,

In GridDataBoundGrid,
I want to Change the particular cell
Font Color and make it bold.How to do it.

And Also,

I want to make the border line for the set of records in a grid
[e.g]

records 1 to 5 in one box
records 5 -> 12 in another box

How to do it?

suggest me an idea.

thanks,

Prakash


1 Reply

JN Jayakumar Natarajan Syncfusion Team December 28, 2006 04:29 PM UTC

Hi Prakash,
Handle the PrepareViewSytleInfo and set the e.Style.Font for any particluar cell by checking Row and Column indexes.

For setting the BorderLine, you need to set the e.Style.Borders checking the e.RowIndex in the PrepareViewStyleInfo:

KB articles:

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=83

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=25 (For GDBG, you need to do this in PrepareViewStyleInfo)

Best regards,
Jay

Loader.
Live Chat Icon For mobile
Up arrow icon