Hello All,
I am using Visual Studio 2008 and infragistics for my project.
There is a Client requirement related to Ultragridview.
I need to insert a new row in Ultragridview after the selected row.
Currently it is inserted as a last row.
Plese, let me know is it possible to do it and how.
Thanks
Hello,
This issue is fixed. View following forum thread for more details.
http://forums.infragistics.com/forums/p/47020/251756.aspx#251756
When you print or export, the grid creates a new layout, cloned from the grid's DisplayLayout, with a whole new set of rows for printing/exporting. It looks like the new rows are not picking up the correct order for rows that were moved.
I tried doing this in code, but I cannot get it to work for some reason, so I think this is a bug. I'm going to report the issue to Infragistics Developer Support so they can get it looked at.
I have used your method to make some summary inside the grid and it works fine
but when i want to print it or export it into excel I have the grind printed in the state before the move operation... how can I fix it ?
this may depend on what kind of data source you are using. If you are using a DataTable / DataSet, for example, then when you insert a row into the DataTable, it sends a notification to the grid but it does not provide the correct index for the new row - it always puts it on the bottom.
The easiest thing to do would be to add the row and then use the rows.Move method to move the row into the position you want.