如何在datagrid與repeader控件中對(duì)標(biāo)識(shí)值進(jìn)行替換-創(chuàng)新互聯(lián)

如何在datagrid與repeader控件中對(duì)標(biāo)識(shí)值進(jìn)行替換?很多新手對(duì)此不是很清楚,為了幫助大家解決這個(gè)難題,下面小編將為大家詳細(xì)講解,有這方面需求的人可以來(lái)學(xué)習(xí)下,希望你能有所收獲。

成都創(chuàng)新互聯(lián)公司堅(jiān)持“要么做到,要么別承諾”的工作理念,服務(wù)領(lǐng)域包括:網(wǎng)站建設(shè)、做網(wǎng)站、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣等服務(wù),滿足客戶于互聯(lián)網(wǎng)時(shí)代的克山網(wǎng)站設(shè)計(jì)、移動(dòng)媒體設(shè)計(jì)的需求,幫助企業(yè)找到有效的互聯(lián)網(wǎng)解決方案。努力成為您成熟可靠的網(wǎng)絡(luò)建設(shè)合作伙伴!

DataGrid控件中替換標(biāo)識(shí)值的使用:

<asp:DataGrid ID="dgList" runat="server" Width="100%" AutoGenerateColumns="False"> 
<Columns> 
<asp:BoundColumn DataField="COP_G_NO" HeaderText="物料號(hào)/成品貨號(hào)"></asp:BoundColumn> 
<asp:BoundColumn DataField="QTY" HeaderText="數(shù)量"></asp:BoundColumn> 
<asp:TemplateColumn HeaderText="物料標(biāo)識(shí)"> 
<ItemTemplate> 
<%#GetTransType(DataBinder.Eval(Container.DataItem, "FLAG"))%> 
</ItemTemplate> 
</asp:TemplateColumn> 
</Columns> 
</asp:DataGrid>
直接調(diào)用后臺(tái)方法:
<asp:TemplateColumn HeaderText="原產(chǎn)地"> 
<ItemTemplate> 
<%# (Common.Constant.CountryList.ContainsKey(Eval("COUNTRY") + "")) &#63; Common.Constant.CountryList[Eval("COUNTRY") + ""] : Eval("COUNTRY") + "" %> 
</ItemTemplate> 
</asp:TemplateColumn>

網(wǎng)站欄目:如何在datagrid與repeader控件中對(duì)標(biāo)識(shí)值進(jìn)行替換-創(chuàng)新互聯(lián)
網(wǎng)站網(wǎng)址:http://muchs.cn/article40/csppeo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供商城網(wǎng)站、微信小程序App開發(fā)、做網(wǎng)站外貿(mào)建站、全網(wǎng)營(yíng)銷推廣

廣告

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

成都網(wǎng)站建設(shè)