Inserting Serial No. In Grid View Using Source Code

 Steps- 

1. Select grid view.

2. Go to master tag.

3. Select edit columns.

4. Select template field.

5. Fill the header text.

6. Go to source.

7. Put the cursor in between the template field tag . 

8. Here, <ItemTemplate> tag will be inserted 

INSIDE <ITEMTEMPLATE> CODE FOR SERIAL NO. INSERTION IS APPLIED-

<%#Container.DataItemIndex+1%> 

%- it is used to read the row.

#- set the serial no.

+1- Insense of increment.

Comments

Popular posts from this blog

Parameter Query

Final Project

Grid View Paging