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
What is the difference between writeline and write in c#?
What does do in c#?
Which string method is used for concatenation of two strings in c#?
What are the advantages of properties in c#?
How does the lifecycle of Windows services differ from Standard EXE?
What is gac? How to put assembly in gac?
What do you mean by expression tree?
Explain About DTS package
What is console write in c#?
What is difference between abstract class and interface in c#?
What does immutable mean in c#?
Distinguish between the Debug class and Trace class with its functionality?
What is difference between first and firstordefault?
How to find out that the code is written as managed or un-managed code?
Distinguish between system.string and system.text.stringbuilder classes?