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
295
Multiple bands in win grid
posted

Hello,

I want to have multiple bands in ultrawingrid but all binded to one table. how can i achieve this kind of hierearchy?

Parents
  • 53790
    posted

    Hello Rooma,

    Maybe one possible way could be if you are using DataSet,  DataTable and  parent - child relation between two of the columns. For example:

    DataSet ds = new DataSet();

     

    DataTable dt = new DataTable();

    dt.Columns.Add("iIsn", typeof(int));

    dt.Columns.Add("iPIsn", typeof(int));

    dt.Columns.Add("Name", typeof(string));

     

     

    DataRelation dr = new DataRelation("MY", dt.Columns["iIsn"], dt.Columns["iPIsn"],false);

    ds.Relations.Add(dr);

    Using this approach (with self related table) you could met endless loop of hierarchy, so if you want to prevent endless loop of hierachy, you could used MaxBandDepth property. By this way you could set the deep of your hierarchy or other possible approach could be if you hide your root node (for more details please take a look at the attached sample)

    Let me know if you have any questions.

    Regards

     

Reply Children