Gridview列应为增量 [英] Gridview Column should be increment

查看:92
本文介绍了Gridview列应为增量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,
我有一个Gridview,其中有特定的列名称SrNo
我的要求是SrNo,如果自动喷油器获得其序列号
gridview中第一行的示例,它应为P01
第二个是P02,依此类推.....
用户将在SrNo中手动在网格中输入其他详细信息.

我该如何做到呢?

问候,
aamir

Dear Friends,
i have a Gridview in which there is particular Column name SrNo
my requirement is the SrNo should automacillay gets its series no
example for 1st row in gridview it should be P01
for second it will be P02 and so on.....
the users will manually enter the other details in Grid except SrNo.

how can i acheive this?

Regards,
aamir

推荐答案

嘿,让我们尝试一下此代码

尝试 [
hey lets try this code

try it[^]
may be help you

thank you
ChetanV


尝试一下

try this

<asp:templatefield>  
<itemtemplate>      
<asp:label id="hdrStatus" visible="true" runat="server" text=" <%#"P0"+Container.DataItemIndex+1 %>">
</asp:label>    
</itemtemplate> 
</asp:templatefield>



添加此内容可能是您得到的
你想要什么.
让我知道这可以解决您的问题
谢谢
ChetanV



add this may be you get
what you want.
let me know this will solve your problem or not
Thank you
ChetanV


这篇关于Gridview列应为增量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆