Hi All,
I am binding a datasource to an UltraWebGrid, and then adding a row manually once this is complete (using "Rows.Add()".
My manually created row displays fine in the grid, however, the values are lost if I sort any of the columns in the grid. Is there a way to fix this issue?
Many thanks,
AJ
I found the solution to my problem in the below post:
http://blogs.infragistics.com/forums/p/54008/286661.aspx#286661
Hi,
In UltraWebGrid, I have set the column width in percentage and when I add a new row to the grid from client side then I lost the header. but if I set the column width in Pixel then everything works fine.
Any reason why I lost the header?
My requirement is to set the column width in percentage.
How can I set the column width in percentage without loosing the header ?
Thanks,
Ani
Great, thanks for your response :)
AJ,
Chances are that the rows you've added aren't being stored in ViewState, and so the rows are lost when a postback occurs. If this is the case, then you need to use a different overload of the UltraGridRow constructor, specifically one that takes a boolean value, and pass "true" in for that value.
For more details, please refer to the following post:http://forums.infragistics.com/forums/p/16157/61998.aspx#61998
The following post may also be useful, and also contains some C# code:http://forums.infragistics.com/forums/p/24133/88448.aspx#88448