I am getting this exception when I try to add columns to container grid in code. it works fine if I don't add column in code & directly bind the grid to datasource. I am working on Load on Demand sample.
BoundDataField
);
field.DataFieldName =
;
field.DataType =
field.Key =
field.Header.Text =
//field.DataSourceField = new Infragistics.Web.UI.Framework.Data.DataField("WU_ID", typeof(Int32), null, false);
childGrid.Columns.Add(field);
should I add some more info? Fixing this issue is urgent for us.
Hi,
Could you attach your code behind and maybe even your aspx? Otherwise, it would be difficult to ascertain the problem.
regards,David Young
Hi David,
Attached the file. The issue occurs when I try to expand the level 0 for second time. It works well when I expand the first row but fails when I expand the second row.
I tried it on following versions,
1) Version=10.1.20101.2051
2) Version=9.2.20092.1003
It fails on both the versions.
Thanks
I cannot get your sample to run because I must be missing some reference or namespace. Cannot resolve Category. However, I see one thing you might try changing in the meantime. In you BindSecondLevel function, could your add your new child grid to e.Row.RowIslands before modifying its properties? Let me know if that changes anything. And if you could help me get your sample running, that would be good too.
thanks,
Dave
can you download the sample from the eariler link & then change the .cs page that I have attached in the previous reply? It should work without changing any reference. Meanwhile I will try you suggestion
okk its working now... I added the grind in RowIslands before changing the property. Thanks a lot David !!!!