且构网

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

将数据表值逐行添加到gridview中

更新时间:2023-11-30 23:38:04

而不是添加行手动为什么不使用手动添加的其他列将数据表直接绑定到gridview的数据源?



我更愿意在数据表中添加其他列&将使用aspx页面本身的项目模板列添加复选框,而不是在.cs页面上写入
Rather than adding rows manually why don't you bind the datatable directly to the datasource of the gridview with additional columns you are adding manually?

I would prefer to add additional columns in the datatable & will add checkbox using the item template column in the aspx page itself rather than writing on .cs page