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 ?

Answers were Sorted based on User's Feedback



please exaplain gridview and what are the process available for it. how to add the row number auto..

Answer / subodh kumar

Gridview is a control provided in .net2.0 and above.
Gridview is use to display the records in tabular format.
To fill the record in Gridview control we will use the
following two properties:
1. Gridview1.DataSource=<DataSet or any other datasource>
2. Gridview1.Databinding();

Gridview supports the functionality to add, edit, or delete
the record.
It also suports pagination functionality.
It have the following events which are very usefull:
1. OnDatabind
2. OnItemCommand
3. OnIndexChange
etc.

You can add the child control in Gridview and you can
handle that event through Gridview event handle
i.e. "OnItemCommand". This process is called "Bubble event".

Is This Answer Correct ?    1 Yes 0 No

please exaplain gridview and what are the process available for it. how to add the row number auto..

Answer / 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

More C Sharp Interview Questions

What?s the top .NET class that everything is derived from?

7 Answers  


Are c# constructors the same as c++ constructors?

0 Answers  


Can you change the value of a variable while debugging a C# application?

2 Answers  


What are the Types of compatabilities and explain them

0 Answers   DELL,


What is the difference between Object and class adapters?

0 Answers   QuestPond,


What is the adv of using System.Text.StringBuilder over System.String?

0 Answers   Siebel,


Explain the difference between access specifier and access modifier in c#?

0 Answers  


What namespaces are necessary to create a localized application?

2 Answers  


Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?

0 Answers  


Can Any body send C Sharp latest interview questions to my mail id: alim.mtech@gmail.com.

1 Answers  


When To use HashTable In C#

0 Answers   Infosys,


How do I create a new form in c#?

0 Answers  


Categories