且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

GridView显示有/无数据

更新时间:2023-02-02 21:27:36

您两次调用totable,但您丢弃了第一个实例.上面的行是您的核心问题.抓取返回结果并绑定到该结果.
You''re calling totable twice, but you discard the first instance. The line above is your core issue. Grab that return result and bind to that.



代替这个:
Hi,
Instead of this:
dvTo.ToTable().Rows.Add(dvTo.ToTable().NewRow());


试试这个:


Try this:

dvTo.ToTable().Rows.Add(dvTo.ToTable().NewRow().ItemArray);




--Amit




--Amit