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.

Set summary column align to right

Thread ID:





32506 Aug 2,2005 12:07 PM Aug 2,2005 01:07 PM Windows Forms 1
Tags: GridControl
Asked On August 2, 2005 12:07 PM

Hello, I used following code to add summmary rows for all numeric columns. I want to make the simmary column align to the right. But it always align to the left Nay idea? private void AddSummary() { //create the average summary rows GridSummaryRowDescriptor AvgRow = new GridSummaryRowDescriptor("AvgRow"); AvgRow.Title="Average"; AvgRow.Appearance.SummaryFieldCell.TextAlign=GridTextAlign.Right; //create the minimum summary rows GridSummaryRowDescriptor MinRow = new GridSummaryRowDescriptor("MinRow"); MinRow.Title="Minimum"; MinRow.Appearance.SummaryFieldCell.TextAlign=GridTextAlign.Right; //create the maximum summary rows GridSummaryRowDescriptor MaxRow = new GridSummaryRowDescriptor("MaxRow"); MaxRow.Title="Maximum"; MaxRow.Appearance.SummaryFieldCell.TextAlign=GridTextAlign.Right; //create the tital summary rows GridSummaryRowDescriptor SumRow = new GridSummaryRowDescriptor("SumRow"); SumRow.Title="Total"; SumRow.Appearance.SummaryFieldCell.TextAlign=GridTextAlign.Right; int ColCount=this.gdBase.TableDescriptor.Columns.Count; for(int i=0;i

Administrator [Syncfusion]
Replied On August 2, 2005 01:07 PM

TextAlign specifies whether the text should be to the left or right of any cell buttons. To specify horizontal alignment, use: ....SummaryFieldCell.HorizontalAlignment=GridHorizontalAlignment.Right;


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.