Hi,

Use this..

<asp:TemplateColumn HeaderText="S.No">
                                                                                
<ItemTemplate>
                                                                                
        <asp:Label id="lblSNo" Width="100%"
runat="server" text='<%# (Container.ItemIndex)+1%>'>
                                                                                
        </asp:Label>
                                                                                
</ItemTemplate>
                                                                        
</asp:TemplateColumn>






--- Mischa Kroon <[EMAIL PROTECTED]> wrote:

> What do you mean by:
> 
> sl no ?
> 
> ----- Original Message ----- 
> From: "Kailash" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, August 08, 2005 4:33 AM
> Subject: [AspNetAnyQuestionIsOk] SL NO in Datagrid
> 
> 
> Please give solution for adding sl no column in
> datagrid. Also suggest
> it automatically change when sorting order change.
> if possible.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 


Thanks & Regards,
Sudhakar E
Software Engineer
Mobile : +91 98458 71416
Blogs: http://esudhakar.blogspot.com/
  
" A journey of a thousand miles begins with a single step "







                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h2qdqp0/M=362335.6886445.7839731.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1123502712/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to