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
70
Problem with Manual Load on Demand
posted

Hi,

I have a WebHierarchicalDataGrid with N childgrids. I need to generate the childs on the runtime, each time the user expands a level.

I follow this example, and it works: http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.2/CLR3.5/html%5CWebHierarchicalDataGrid_Manual_Load_On_Demand.html

But... it does not work anymore if I use this property:

childGrid.AutoGenerateColumns = false;

BoundDataField col = new BoundDataField();
col.DataFieldName = "IdDesgloseOP";
col.Key = "IdDesgloseOPa";
childGrid.Columns.Add(col);

BoundDataField col2 = new BoundDataField();
col2.DataFieldName = "ConceptoDesglose";
col2.Key = "ConceptoDesglosea";
childGrid.Columns.Add(col2);


BoundDataField col3 = new BoundDataField();
col3.DataFieldName = "ImporteBase";
col3.Key = "ImporteBasea";
col3.Header.Text = "Importe base";   
childGrid.Columns.Add(col3);


e.Row.RowIslands.Add(childGrid);

childGrid.DataSource = dt2;
childGrid.Band.DataMember = "PruebasSelectDetalle";
childGrid.DataBind();

If I put AutoGenerateColumns = false, the row simpli doesn't expand anymore... Any idea?

Thanks

Parents
No Data
Reply
  • 33839
    posted

    Hi,

    Are you putting AutoGenerateColumns = false on the main grid view?  Could you attach your sample here?  Are you making sure to set IsEmptyParent on the parent row?

     

    regards,
    David Young

Children
No Data