标题:[求助]Datagird 里动态绑定textbox控件-->bygg转移
只看楼主
zhuifengjian
Rank: 1
等 级:新手上路
帖 子:108
专家分:0
注 册:2006-12-31
 问题点数:0 回复次数:0 
[求助]Datagird 里动态绑定textbox控件-->bygg转移

我想在datagrid里动态添加textbox控件..而且用摸板列绑定它......datagrid控件已经用摸板列绑定了一些数据!!!!!!!

Private Sub Datagrid3_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles Datagrid3.ItemCreated
Dim ctr As String
ctr = "<asp:TextBox runat='server' ID='haha' text='Button' />"
Dim ctrl As Control = New Control
ctrl = Page.ParseControl(ctr)
Datagrid3.Controls.Add(ctrl)

'Dim tb As TextBox = New TextBox
'tb.ID = "mytxt"
'tb.Text = "123"
'Datagrid3.Controls.Add(tb)
End Sub

搜索更多相关主题的帖子: textbox 绑定 Datagird bygg 控件 
2007-02-26 10:38



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-121676-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.126544 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved