Welcome to the Xceed Community | Help
Community Search  
More Search Options

Summary rows for detail grid row header when there is only 1 column

Sort Posts: Previous Next
  •  07-02-2009, 9:01 AM Post no. 22212

    Summary rows for detail grid row header when there is only 1 column

    Hi,

    Could anyone please assist me how  can we dispaly the summary rows for Detail grid row header, where  the detailed grid has only 1 column.

    We have implemented similar logic when multiple columns are present and it works, but when there is only 1 column the text format and the count value is overlapping.

    -------------------------------------------------------------------------------------------------------------------------------

    Dim detailGrid As New DetailGrid()

    detailGrid.SetDataBinding(dsTemp, "Protocol.Protocol_IRB")

    Dim summaryrow As SummaryRow = New SummaryRow

    summaryrow.TextFormat = "Total Listed : ".ToString

    detailGrid.HeaderRows.Add(summaryrow)

    detailGrid.HeaderRows.Add(New ColumnManagerRow())

    Grid1.DetailGridTemplates.Add(detailGrid)

    detailGrid.Columns(" Registration Number").Width = 1000

    detailGrid.Columns("Registration Number").Title = "Registration Number"

    Dim summarycell As SummaryCell = New SummaryCell

    CType(summaryrow, System.ComponentModel.ISupportInitialize).BeginInit()

    summaryrow.Cells.Add(summarycell)

    summarycell.Initialize("Registration Number")

     

    summarycell.StatFieldName = " Registration Number"

    summarycell.StatFunction = StatFunction.Count

    CType(summaryrow, System.ComponentModel.ISupportInitialize).EndInit()

    ------------------------------------------------------------------------------------------------------------------------------------------------

    Also tried implementing Title format and Title Position but didnt work out.

    Any suggestions/help would be appreciated.

     

    Thanks,

    Satyajeet

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.