数据在网格中的位置. [英] Position of data in Grid.

查看:68
本文介绍了数据在网格中的位置.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


网格绑定有问题.
我插入到网格中的数据需要任何随机行.
而我想要的是插入的数据占据第一行.
谢谢任何帮助,将不胜感激.

Hi,
Have a problem with grid bind.
The data which I insert in the grid, it takes any random row.
Whereas, what I want is the inserted data to occupy the very first row.
Thanks any help will be appreciated.

推荐答案

现在,当您在数据库中插入数据时,请添加一个datetime列,并将插入的日期时间与记录一起插入,数据按该日期时间列按降序对数据进行排序.
When you insert the data in database add a datetime column and insert the datetime of insertion along with the record, now while retreiving the data sort the data by that datetime column in descending order.


这篇关于数据在网格中的位置.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆