windows下的DataGrid的绑定

compasshr 2003-08-22 09:17:59
在ASP.NET下的DataReader与DataGrid的绑定是用:DataGrid.DataSource
...全文
34 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
yohomonkey 2003-08-22
  • 打赏
  • 举报
回复
基本是一样的,但是web的DG和win的DG关于静态设置DG的columns的属性区别很大,win的需要向设置DG中的tablestyles的相关属性,主要是这个,设置完,从dataset中提取对应tablestyles的MappingName 的datatable进行帮定即可。
beck2002 2003-08-22
  • 打赏
  • 举报
回复
dign
compasshr 2003-08-22
  • 打赏
  • 举报
回复
就是说DataReader 在windows下是怎么绑定的。是用SetDataBinding()?还是其他什么
compasshr 2003-08-22
  • 打赏
  • 举报
回复
在ASP.NET下的DataReader与DataGrid的绑定是用:
DataGrid.DataSource=DataReader;
DataGrid.DataBind();
不知道在windows下的绑定是怎么样的

110,531

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧