Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2211
How To: Set IGrid width?
posted

Hello everyone,

 Does anyone know how to set the width of an IGrid element or the containing band element?

I have been looking for the documentation and I have not found anything.  Also how do you set the size of the font in the cells??? Ounce again I have been looking for documentation with no luck.

TIA,

 

Patrick

  • 2211
    Verified Answer
    posted

    Ok... Missed this one: Here is how to set report objects widths:

    myReportObjName.Width = New FixedWidth(int)

     

    Hope it helps someone,

    Patrick

  • 2211
    posted

    Ok... This is how to set font and size in the cell:

    For Each dr As DataRow In ds.Tables(0).Rows

    gridRow = myGrid.AddRow()

    For i As Integer = 0 To numColumns - 1

    gridCell = gridRow.AddCell()

    'cellPattern.Apply(gridCell)

    Dim quickText As Infragistics.Documents.Report.QuickText.IQuickText = gridCell.AddQuickText(dr(i).ToString)

    quickText.Font = New Infragistics.Documents.Graphics.Font("Arial", 10)

    Next

    Next