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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are delegate methods?

470


Can we inherit private class in c#?

496


What is cshtml?

524


What is the difference between const and readonly in c#.net?

505


Can I use parseint?

488






What is short in c#?

532


Explain the difference between abstract class and interface in .net?

475


What is difference between an Structure and Class?

569


How many types of constructor are there in c#?

484


Is vs as c#?

516


Can a class be private in c#?

497


What is the .NET collection class that allows an element to be accessed using a unique key?

604


What happens if a static constructor throws an exception?

494


What is a multicast c# delegate?

518


What are controls in c#?

480