I am santhosha, actually am developing a sample web application using asp.net and c# which includes a sample CRUD operation, here i want to display updated record to first row of the gridview. I am new to Asp.net and C#, can anyone please get me out o开发者_Go百科f this.
Advance Thanks.
With Regards,
Santhosha h P
use header template of gridview control to show updated record.
infact you can use header template, but i think you can maintain the last updated record flag /counter in database, and whenever you are updating the record just increment/update your counter or flag. and whenever you retrieving the records check the flag , and handle the Row_updating event where you can use item template. use item template and show the updated flag record. in this way you can found the latest record at top of grid view.
精彩评论