GridView行綁定

<asp:TemplateField HeaderText="流程進度">

站在用戶的角度思考問題,與客戶深入溝通,找到都勻網(wǎng)站設(shè)計與都勻網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗,讓設(shè)計與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個性化、用戶體驗好的作品,建站類型包括:成都網(wǎng)站設(shè)計、成都做網(wǎng)站、企業(yè)官網(wǎng)、英文網(wǎng)站、手機端網(wǎng)站、網(wǎng)站推廣、主機域名、雅安服務(wù)器托管、企業(yè)郵箱。業(yè)務(wù)覆蓋都勻地區(qū)。

                    <ItemTemplate>

                        <asp:Label ID="lblFlow"runat="server"></asp:Label>

                    </ItemTemplate>

                </asp:TemplateField>

 

protected void gridList_RowDataBound(object sender, GridViewRowEventArgs e)

    {

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

        {

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

            //對應(yīng)值

            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://bm7419.com/article10/pphjgo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航、做網(wǎng)站面包屑導(dǎo)航、定制網(wǎng)站、Google靜態(tài)網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)頁設(shè)計公司