Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 the difference between writeline and write in c#?

790


What does do in c#?

897


Which string method is used for concatenation of two strings in c#?

949


What are the advantages of properties in c#?

906


How does the lifecycle of Windows services differ from Standard EXE?

958


What is gac? How to put assembly in gac?

943


What do you mean by expression tree?

793


Explain About DTS package

915


What is console write in c#?

878


What is difference between abstract class and interface in c#?

885


What does immutable mean in c#?

899


Distinguish between the Debug class and Trace class with its functionality?

946


What is difference between first and firstordefault?

866


How to find out that the code is written as managed or un-managed code?

1033


Distinguish between system.string and system.text.stringbuilder classes?

877