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
645
Visual unbound title band above each Data-Band
posted

Hello all,

In a WindowsForms application with Infragistics Vol. 2009.2 I am using one UltraGrid which has a dynamical DataSet as DataSource and in the DataSet there are many DataTables which has hierarchical relations in the Dataset.

In order to display the band information/name clearly I’d like to add a visual unbound title band above each DataTable band s. Attachment

Is that possible, if yes then how?

Many thanks in advance

Best regards

VisualTitleBand.zip
Parents
  • 469350
    Offline posted

    Hi,

    What you are looking for is called a Band Header. You can turn this on like so:


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                foreach (UltraGridBand band in e.Layout.Bands)
                {
                    band.HeaderVisible = true;
                    band.Header.Caption = "This is band: " + band.Index;
                }
            }

Reply Children