Home Forums WinForms controls Xceed Grid for WinForms How to change rhe summar font to bold

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17334 |

    my code  is below. I want to make the summary in bold letter. Please help , I am new to Xceed.Thanks

    Dim sumRow As New SummaryRow()

    If GridControl1.HeaderRows.Count > 0 Then

    GridControl1.HeaderRows(0).Remove()

    End If

    GridControl1.HeaderRows.Add(sumRow)

    DirectCast(sumRow.Cells(5), SummaryCell).TitleFormat = “Total No Of Invoices”

    DirectCast(sumRow.Cells(5), SummaryCell).StatFunction = StatFunction.Count

    DirectCast(sumRow.Cells(23), SummaryCell).StatFunction = StatFunction.Sum

    DirectCast(sumRow.Cells(24), SummaryCell).StatFunction = StatFunction.Sum

    DirectCast(sumRow.Cells(25), SummaryCell).StatFunction = StatFunction.Sum

    Imported from legacy forums. Posted by chrise (had 1279 views)

    Xceed Support
    Member
    Post count: 5658

    Hi,

    You can set a SummaryCell content to bold by assigning the desired value to its Font property as follow:

    gridElement.Font = New Font( gridElement.Font, gridElement.Font.Style Or FontStyle.Bold )

    The Information is also available on the online documentation at: http://doc.xceedsoft.com/products/Xceedgrid/Xceed.Grid~Xceed.Grid.GridElement~Font.html.

      

     

    Imported from legacy forums. Posted by Mohamed [Xceed] (had 138 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks Mohammad

    Imported from legacy forums. Posted by chrise (had 1157 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.