please exaplain gridview and what are the process available
for it. how to add the row number automatically? is it
possible to add child controls ?

Answer Posted / siva

The above said is write. With addition to that To add the
row number automatically See the below code.

<asp:TemplateField HeaderText="S.No">
<ItemTemplate >
<%# Container.DataItemIndex + 1 %>
</ItemTemplate>
</asp:TemplateField>

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a custom attribute?

651


What is a protected class in c#?

685


How do you encapsulate in c#?

668


Explain states of a thread in c#?

737


What is the difference between function and method in c#?

647


Explain circular reference in c#?

732


What are sorted lists?

687


What is variable in c#?

725


Does console.writeline() stop printing when it reaches a null character within a string?

732


What is regex c#?

672


What are the 3 elements of delegation?

709


What is disconnected data architecture in c#?

687


What is transparent caching with aop ?

785


What is difference between code access and role based security?

713


How to install or uninstall a windows service?

771