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 gui in c#?

547


Explain about Error handling and how this is done

538


i want o/p 011242110 in c# code.

1636


What is boxing? Explain its functionality?

561


Can abstract class have private constructor c#?

512






What Is An Interface Class?

560


How do destructors and garbage collection work in c#?

534


What are data types in C#?

569


Explain about WSDL

599


Is as operator in c#?

473


What is sqlcommand in c#?

499


Contrast System.String and System.Text.StringBuilder classes?

528


What is token in c#?

531


What is the difference between as and is operators in c#?

440


What are the Types of optimization and name a few and how do u do?

528