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
What tool we have to use to install assembli in gac folder.
What is icomparable in c#?
Are arrays immutable c#?
Can you declare a class or a struct as constant?
Why do we use void in c#?
Explain constructor in c#?
What is view model in c#?
Explain about generics in c#.net?
What happens during the process of boxing?
How do you access a constant field declared in a class?
Which of the following operations can you not perform on an ado.net dataset?
What is semaphore in c#?
How many constructors can a class have c#?
What are namespaces, and how they are used?
What is lazy loading and eager loading in c#?