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

Summary rows for single column for Detail Grid row header

Sort Posts: Previous Next
  •  07-02-2009, 6:12 AM Post no. 22207

    Summary rows for single column for Detail Grid row header

    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 are 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()

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

     

    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.