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
35
Question on Ultragridview's insertion of new row
posted

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

Parents
  • 469350
    Suggested Answer
    Offline posted

    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.

Reply Children