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
945
Insert rows
posted

 Hello:

Can you insert new rows on top of the grid? What I would like to do is basically to set the data source to be a DataTable and be able afterwards to insert rows/col on top of the first row. Is this possible? If not what would be a sensiblie approach to achieve this? 

Thanks,

Mihail 

 

Parents
  • 575
    posted

    If you are using a datatable as your datasource and you don't have any special sorting happening you can simply insert your record at the top of your datatable.

    datatable.rows.insert(rowToAdd,0)

    Brandon

Reply Children