//hi
//I think This will work for any order of sorting
//place One label in Datarepeter as
<asp:Label ID="lbl_srno" Runat="server"></asp:Label>
//and add this code in vb Code behind
Private Sub DR_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.RepeaterItemEventArgs) Handles DR.ItemDataBound
Dim lbl_srno As New Label()
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =
ListItemType.AlternatingItem Then
lbl_srno = e.Item.FindControl("lbl_srno")
tchkcount();")
lbl_srno.Text = (e.Item.ItemIndex + 1).ToString
End If
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
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "AspNetAnyQuestionIsOk" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
AVI
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hv9c6so/M=362329.6886308.7839368.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1123507551/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</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/