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.

PrepareViewStyleInfo Event

Thread ID:

Created:

Updated:

Platform:

Replies:

54130 Jan 2,2007 01:35 PM Jan 2,2007 11:21 PM Windows Forms 1
loading
Tags: GridControl
Sathish Chandran
Asked On January 2, 2007 01:35 PM

Hi,

1. I was to apply a text colour for a particular cell in PrepareViewStyleInfo event.

2. I was to refresh a particular cell in PrepareViewStyleInfo event.

Please help me out.

Regards,
Sathish.

Administrator [Syncfusion]
Replied On January 2, 2007 11:21 PM

Hi Sathish,

>>>>>> 1. I was to apply a text colour for a particular cell in PrepareViewStyleInfo event.
You can use the e.Style.TextColor property to change the color of the text in a cell. Here is a code snippet.

e.Style.TextColor = Color.Red;

>>>>>> 2. I was to refresh a particular cell in PrepareViewStyleInfo event.
Try calling InvalidateRange method to refresh the specified range in a grid.

(sender as GridControl).InvalidateRange(GridRangeInfo.Cell(e.RowIndex,e.ColIndex));

Best Regards,
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.

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.

;