GirdView下拉列表数据绑定 [英] GirdView Dropdownlist Databind

查看:149
本文介绍了GirdView下拉列表数据绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试使用asp.net和c#在页面加载时仅在gridview内绑定数据下拉列表列.我能够将数据绑定到它,但是它正在为总列表项目创建行.我想第一次绑定到该行,我只能看到一行.稍后,当我单击任一列时,它将创建一个新行.

问候,
Jeevan.

Hi All,

I am trying to Bind data dropdown list column only inside the gridview while pageload using asp.net with c#. I am able to bind the data to it but it is creating rows for total list itmes. I want to bind to that at the first time i can able to see only one row. Later When i click on any one of the column then it will create a new row.

Regards,
Jeevan.

推荐答案

嗨..
可以使用DataList在绑定控件中进行选择,然后根据需要在源代码中编辑Item模板
Hi..
DataList can be used for selections inside bound controls and then edit the Item templates in the source code according to your requirement


这篇关于GirdView下拉列表数据绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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