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
120
Hierarchical Grid by Manually defined schema
posted

Hi Staff.

I have a simple DataSet with two tables, and this DataSet is the DataSource of my Grid.

What i obtain is a Hierarchical Grid.  It works fine but i always manually define the schema.

I created Bands 0 and his Child, Bands 1.

Columns in Bands 0 works fine (i mean, i can change property correctly), but what i edit in Bands 1 (whatever property, column caption for example), nothing change.

If i try to change this by code behind, it works.

Why?

Is it possible manually define a schema for Hierarchical Grid?

Another and last question: Column 1 on Bands 1 has the same width of Column 1 of Bands 0. 

this happens for all the columns. 

Is it possible define different widths for Bands 1?

Parents
  • 25665
    Offline posted

    Hello Luciano,

    Thank you for contacting Infragistics!

    This behavior is likely occurring because the name/key of your Band 1 does not match what is in the data source. The reason Band 0 works as since it is the parent level it doesn’t have the requirement of having to match those. You will want to make sure what you have in the schema matches your data source (not that for the key you may have to use the data relation).

    As for setting column width each column has its own width property. After defining the schema under the basic settings in the designer. Expand out the Band and Column Settings. There you will be able to define widths on the columns in Band 1.

Reply Children