Hi,
I need to know that how to retrieve value from <%#Container.DataItemIndex
+ 1 %> which i have written in a template field in a gridview to get the numbered rows. Now I am getting the column with numbers but i need to retrieve the value of that in rowdatabound event for comparison....so how to do that???
Assign this value in ItemTemplate to some control
and Find this control in row databound
var lblRowNumber = GridViewRow.FindControl["lblRowNumber"] as Label
Regards
thanks I got this answer already.
沒有留言:
張貼留言