This is a migrated thread and some comments may be shown as answers.

Align summary items in GroupHeader?

1 Answer 117 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Victor Gonzalez
Top achievements
Rank 1
Victor Gonzalez asked on 06 Jul 2009, 03:02 PM
Hi! I need to align the results of summaries when i group a column, but the info appears without alignment,
I try this:

gTotal.Add(

New GridViewSummaryItem("Plaza", "{0} ".Trim().PadLeft(30, " "), GridAggregateFunction.First))

 

gTotal.Add(

New GridViewSummaryItem("Ipagoprox", "{0} ".Trim().PadLeft(30, " "), GridAggregateFunction.Sum))

 

 

 

Me.dgPrueba.MasterGridViewTemplate.SummaryRowGroupHeaders.Add(gTotal)

 


Example:


CITY: A      TOT1: 100           TOT2: 400
CITY: B      TOT1: 150           TOT2: 800
CITY: C      TOT1: 300.50      TOT2: 400
CITY: D      TOT1: 400           TOT2: 500
CITY: E      TOT1: 450           TOT2: 600

Thanks!

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 09 Jul 2009, 12:34 PM
Hi Victor Gonzalez,

The summaries seems to get formatted correctly using the code that you provided. Please send a sample application which demonstrates the issue. I am looking forward to your reply.

Kind regards,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Victor Gonzalez
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or