当前位置:编程学习 > C#/ASP.NET >>

datagridview 某列失去焦点事件

datagridview 某列失去焦点事件 --------------------编程问答-------------------- 这要动态给某列添加JS代码
在RowDataBound的事件里
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.e.Row.Cells[列索引].Attributes.Add("焦点事件名", "操作");
}

--------------------编程问答-------------------- win下 不是web --------------------编程问答-------------------- CellEnter 
判断列号是否相同,并记录新的列号
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,