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

PrepareViewStyleInfo Event

Thread ID:

Created:

Updated:

Platform:

Replies:

54130 Jan 2,2007 06:35 PM UTC Jan 3,2007 04:21 AM UTC WinForms 1
loading
Tags: GridControl
Sathish Chandran
Asked On January 2, 2007 06:35 PM UTC

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 3, 2007 04:21 AM UTC

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.

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

;