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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Merged cell text alignment problem when frozen columns are visible

Thread ID:

Created:

Updated:

Platform:

Replies:

99416 May 19,2011 12:02 PM UTC May 20,2011 01:15 PM UTC ASP.NET Web Forms (Classic) 2
loading
Tags: GridGroupingControl
Andy Chan
Asked On May 19, 2011 12:02 PM UTC

Hello,

I've encountered a problem that I wish to resolve, but am unsure of the reason. I am using the syncfusion GridControl and version 6.1.0.34.

The problem exists when I merge cells from an entire row and display only frozen columns (either by setting row widths, or shrinking the gridcontrol size). When I try to edit text in the merged cells, the text will be centered. This creates a problem because the centered text can sometimes (in this case, all the time) be off the visible area of the grid. I've tried using

GridControl.GetCellRenderer(e.RowIndex, e.ColIndex).StyleInfo.TextAlign = GridTextAlign.Left;

and
GridControl[currentRow].RowStyles.TextAlign = GridTextAlign.Left

during the CellDoubleClick grid event and the CellActivatedEvent.

Perhaps these grid events are not the correct ones to apply alignment? By default, I want my text to be centered, but when editing, I want text to be left-justified so that the user can always see what is being entered into the cell. Thanks for any help you may offer.

Andy.


Andy Chan
Replied On May 19, 2011 02:20 PM UTC

I have resolved this issue.


Eswari S [Syncfusion]
Replied On May 20, 2011 01:15 PM UTC

Hi Andy,

Thanks for the update.

Happy to hear that you have everything working . Do not hesitate to update if you have any questions.

Regards,
Eswari.S



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

;