Gridview is the replacement in .net 2.0 for the datagrid.
the differences between them is >>sorting editing and
paging are the additional capabilities in gridview which
requires no coding while Datgrid requires the user
coding .Gridview has improved databinding using smart
tag.Additional column types and design time column
operations.Customised pager UI using pager
template.Customized paging support.
Datagrid has itemdatabound event but in gridview it is
replaced by rowdatabound.In datagrid u can show more than
one table with their relation while not possible in
gridview.
Gridview have More properties and events than datagrid.
Auto delete,Edit,auto column,rowbound,rowdeleteing and many
more.
Grid view is more user friendly than gridview.
using gridview we can transfore the control one page to
another page.ex..if i create one master page, and one detail
(child) . we can provide easily link from master page to
detail(child) page.and transfer on that page. its a main
benifit of using gridview , i think so........
What is the purpose of the following segment?
If ( !IsPostBack)
{
sqldataAdapter1.Fill (dsusers1);
DataGrid1.DataBind ();
}
a) To populate the DataAdapter the first time the web page
id displayed.
b) To populate the DataSet every time the web page is displayed.
c) To populate the DataAdapter every time the web page is
displayed.
d)To populate the DataSet the first time the web page is
displayed.
What is the function of the CustomValidator?
a) It allows for custom C# client-side code to validate
entries in a control.
b) It allows for a custom mixture of validator controls to
use one central control for the display of messages.
c) It uses scripted client-side code to validate the entry
in a control.
d) It uses server-side code to validate the entry in a control.