gridview中的ontext更改事件 [英] ontext change event in gridview

查看:67
本文介绍了gridview中的ontext更改事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以向我解释如何在gridview中实现ontext更改事件吗...


并给出示例C#编码....

Can Anyone Explain me how to implement ontext change event in gridview...


and also give example C# coding....

推荐答案

这两个链接对您看一眼都很有用

http://msdn.microsoft.com/en-us/library/ms993231.aspx [ ^ ]
http://forums.asp.net/t/1170291.aspx [
Both links can useful for you take a look

http://msdn.microsoft.com/en-us/library/ms993231.aspx[^]
http://forums.asp.net/t/1170291.aspx[^]



您将文本框放在gridview中为

You put the textbox in gridview as
<asp:textbox id....="" ontextchange="ontextchangeEvent" autopostback="true" ...="" xmlns:asp="#unknown">
 and in code behind use the method as

private ontextchangeEvent (object sender, eventargu e)
{
   textbox txt=(textbox)sender;
   gridview grv=(gridview)txt.parentcontainer;
....

}</asp:textbox>


看看这个:

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.ontextchanged.aspx [ ^ ]
Have a look at this:

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.ontextchanged.aspx[^]


这篇关于gridview中的ontext更改事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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