Select from following answers:- Add
- Merge
- Clone
- Copy
- All Above
Merge method is used to merge one Datatable to another Datatable.
For example:- Assume we have 2 datatables viz. EmployeeDataTable1 and EmployeeDataTable2.
If we want to merge the data from EmployeeDataTable2 to EmployeeDataTable1,then we will write below code as:-
protected void Page_Load(object sender, EventArgs e)
{
EmployeeDataTable1.Merge(EmployeeDataTable2);
}
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator