RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
GridView行绑定

站在用户的角度思考问题,与客户深入沟通,找到都匀网站设计与都匀网站推广的解决方案,凭借多年的经验,让设计与互联网技术结合,创造个性化、用户体验好的作品,建站类型包括:成都网站设计、成都做网站、企业官网、英文网站、手机端网站、网站推广、主机域名雅安服务器托管、企业邮箱。业务覆盖都匀地区。

                   

                       

                   

               

 

protected void gridList_RowDataBound(object sender, GridViewRowEventArgs e)

    {

        if(e.Row.RowType == DataControlRowType.DataRow)

        {

            DataRowView cutRow =(DataRowView)e.Row.DataItem;

            //对应值

            stringstrID = string.Empty;

            stringstrProjStatenm = string.Empty;

            try

            {

                strID = cutRow["id"].ToString();

                strProjStatenm =cutRow["proj_statenm"].ToString();

                Label xLabel =(Label)e.Row.FindControl("lblFlow");

                if (xLabel != null)

                {

                    if (strProjStatenm == "审批中")

                    {

                        string strSql = string.Format("select f_transidstepname({0}) from dual ",strID);

                        xLabel.Text= string.Format("审批中-{0}",OracleHelperImm.ExecuteScalar(strSql));

                    }

                    else

                    {

                        xLabel.Text= strProjStatenm;

                    }

                }

            }

            catch(System.ArgumentException ex)

            {

                //忽略 

 

            }

 

  }

}


标题名称:GridView行绑定
转载注明:http://sczitong.cn/article/pphjgo.html