从上到下填充gridview行 [英] fill gridview rows from top to bottom

查看:98
本文介绍了从上到下填充gridview行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,先生.我正在输入一些行到gridview.我没有使用任何数据库.但它不会占用第一行,第二行.
每当我进入一行时,它就会显示底部.每当我进入第二排.第一行向上移动.第二行显示底部.我想按顺序从底部填充行.去做这个.请告诉我.任何身体请帮助我.
谢谢.

hello sir. i am entering some rows to gridview. i am not using any database. but it is not taking first 1st row, next 2nd row.
when ever iam entering one row it is displaying bottom. when ever i am entering second row. first row is moving up. and second row is displaying bottom. i want to fill the rows from to bottom in a order. to do this. how plz tell me. any body plz help me.
thanking you.

推荐答案

为此,您需要操作数据源(例如DataTable或List等),并使用LINQ对数据源进行排序.
To do this you need to manipulate the datasource (example DataTable or List etc )and sort the datasource using LINQ.


数据源 [ Gridview [
Use sorting in Datasource[^](Ex.Datatable) or in Gridview[^]


这篇关于从上到下填充gridview行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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