将dt.rows.add()方法随时添加一行到数据表的底部? [英] will dt.rows.add() method always add row to the bottom of the datatable?

查看:2616
本文介绍了将dt.rows.add()方法随时添加一行到数据表的底部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问datatable.rows.add()方法总是一个数据行添加到数据表的结束?

Will the datatable.rows.add() method always add a datarow to the end of the datatable?

感谢。

推荐答案

据我所知, datatable.rows.add()添加新行的数据表结束

As far I know, the datatable.rows.add() adds new row to end of datatable.

如果你想在第一次插入的行,你必须做的是这样的:

If you want to insert the row at the first, you have to do like this:

dTable.Rows.InsertAt(dRow, 0);

这篇关于将dt.rows.add()方法随时添加一行到数据表的底部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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