动态地将列表内容添加到gridview数据源 [英] dyanamically add list content to gridview datasource

查看:63
本文介绍了动态地将列表内容添加到gridview数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

帮帮我啦......

我有一个gridview并动态生成一个列表,该列表应该添加到gridview的数据源中。因为它们(数据)绑定到gridview但是在调试时但没有显示在页面上。

Help me Friends ....
I have a gridview and dynamically i m generating a list and that list should be added to the datasource of the gridview .As they(data) are binding to the gridview but at debugging time but not showing on the page .

推荐答案

你好Kumar!你在.aspx上设置AutoGenerateColumns =True并在你的.cs上调用DataBind()吗?
Hi Kumar! Do you set AutoGenerateColumns = "True" on .aspx and call DataBind() on your .cs?


这篇关于动态地将列表内容添加到gridview数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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