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
725
Hide band(1) (DataSet.Relations)
posted

I have a DataSet with 2 tables and one relation between the two tables (pDataSet.Relations).
I have 2 grids, one for the master (his DataSource is the DataTable for the master table) and the other for the child (his DataSource is the DataView for the child table with his corresponding filter).

My problem is that, simply by defining the relationship, in the master grid shows the masters records in the band(0), and too the child records in the band (1).

How can i hide in the master grid the band(1)??

I hope you understand my problem and i thank you in advance for your replay.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    There are a number of ways you can do this.

    What I would do is this:

    this.ultraGrid1.DisplayLayout.ViewStyle = Infragistics.Win.UltraWinGrid.ViewStyle.SingleBand;

    You could also set MaxBandDepth to 1.In fact, it might not be a bad idea to set this in addition to the ViewStyle.

    Or you could use the Hidden property on the Band to hide any individual band.

Children
No Data