This content has been marked as final. Show 4 replies
I solved this issue. This was a pretty interesting one.In my code, value of column width was not gettin resolved due to some error.That was the reason this error was occuring.
Whenever you are dynamically generating a datagrid, make sure tht all properties like width, datafield, visible are set to their corresponing values and are not null, this will prevent this error.
I am having the same requirement as yours, I want to create datagrid and few labels dynamically. But i dono how to do that,
if you can plz send me the code so that it will be very helpful for me
Goto the following link. here you will find the code for dynamic datagrid generation.
Ofcourse you willl have to modify the code according to your requirement but its easy.
Thanks a lot