I get a dataset using DataReaderand assigning a row. Now I need to fill the columns with DataTablequery fields. DataTableconnects to the grid to display filled data.
:
strSQL = "SELECT EmpCode,EmpID,EmpName FROM dbo.Employee
DataTablethe columns EmpCode, EmpID, EmpName.
I need to read a query and assign to columns DataTableand populate a table. I tried as below, but I am not getting the correct output,
Me.DtShifts.Tables("NonAllocated").Clear()
Me.DtShifts.Tables("NonAllocated").Load(dr)
source
share