现在的位置: 首页 > 综合 > 正文

为GridView控件的编辑行添加高亮色

2013年08月14日 ⁄ 综合 ⁄ 共 365字 ⁄ 字号 评论关闭
 /// <summary>
    
/// 编辑当前行
    
/// </summary>
    
/// <param name="sender"></param>
    
/// <param name="e"></param>
    protected void gridview1_rowediting(object sender, gridviewediteventargs e)
    {
        gridview1.editindex 
= e.neweditindex;
        
//当前编辑行背景色高亮
        this.gridview1.editrowstyle.backcolor = color.fromname("#f7ce90");
        gridviewbind();
    }

抱歉!评论已关闭.