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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Aligning numbers to the right, and text to the left

Thread ID:





42361 Mar 28,2006 03:54 AM UTC Mar 28,2006 09:23 AM UTC WinForms 1
Tags: GridControl
Terry Rossow
Asked On March 28, 2006 03:54 AM UTC

Hi there, I have a situation where I want to implement a "General" alignment - I need any text in cells using this alignment to be left aligned, and any numeric data to be right aligned. I also need users to be able to explicity set left, right or center aligned as well - and thus I need to be able to determine be tween left/right because of the data, and left or right because the user set it. I have a rather complex solution that involves new GridStyleInfo types, and lots of messing around. Does anyone have a easier solution? Cheers, TERRY ROSSOW

Administrator [Syncfusion]
Replied On March 28, 2006 09:23 AM UTC

Hi Terry Rossow, Attached is a sample, which aligns the string cell values by left and the numbers by right and also allows user to set the alignment explicitly using the context menu. Regards, Calvin.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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