>Hi All,
>
>I have a datagrid with a datatable as datasource. I'm inserting rows into the datatable with the InsertAt(dr,0) function, because I want the last record to be the first in the grid. But this doesn't work ! Can anyone help me ?
>
>Best Regards,
>Hans
Do you have some sort of auto-incrementing primary key in your datasource? If so, you can create a dataview, sort on that key DESC, and bind your datagrid to the dataview. I usually try to bind datagrids to dataviews anyway, because it saves time in the future when users inevitably want some sort of crazy sorting or filtering.