gridview可编辑模式 [英] gridview editable mode

查看:110
本文介绍了gridview可编辑模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

您能帮我在gridview中的下拉列表吗?

我需要使用c#和asp.net动态地在可编辑模式下绑定gridview控件中的dropdownlist.
如果单击编辑"按钮,则需要一个ddl控件与表的列绑定.

您能帮我写onrowdatabound事件吗?

Hello guys,

Can you please help me with dropdownlist in gridview.

I need to bind the dropdownlist in gridview control in editable mode using c# and asp.net dynamically.
If I click the edit button, I need a ddl control to be bind with the coloumn of a table.

Can you please help me to write the onrowdatabound event.

推荐答案

^ ]是有用的链接.
Here[^] is a useful link.


但我有问题:
ddl.DataSource = mytable语句和
categoryid = Int32.Parse(e.Row.Cells [0] .Text)
你能解释一下代码吗?
but i have problem :
ddl.DataSource = mytable statement and
categoryid = Int32.Parse(e.Row.Cells[0].Text)
and can u explain the coding please.


这篇关于gridview可编辑模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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