Wednesday, October 13, 2010

What are the RowTypes supported by GridView ?

DataRow ,
Header ,
Footer,
EmptyDataRow,
Pager,
Separator


1. What is the difference between RowCreated and RowDataBound ?

The Bound Cell Data is not available in RowCreated event.

Otherwise there all the things which can be done in RowDataBound
can also be done in RowCreated ( things which do not involve bound data).

Other difference is RowCreated is automatically called in
Postback and Nonpostback scenarios. RowDataBound is called when a
call to DataBind is given.


2. What is RowCommand ?
This is an event fired when command button is clicked on Gridview.
The command button can be one of the system types (delete, edit, update,..)
or custom command type.

No comments:

Post a Comment

 using Microsoft.AspNetCore.Mvc; using System.Xml.Linq; using System.Xml.XPath; //<table class="common-table medium js-table js-stre...