1) declare one data table
2) fetch whatever data you want
3) declare one data row to data table
4) arrange data as per your requirement in row
5) insert row into data table.
likewise this you can arrange data row wise from different tables
6) after adding all rows to data table assign this data table as data source to grid view
try it......
DataTable oDtTemp = new DataTable();
for (int iCol = 0; iCol < dsIncentivePay.Tables[0].Columns.Count; iCol++)
{
oDtTemp.Columns.Add(dsIncentivePay.Tables[0].Columns[iCol].ColumnName.ToString().Trim());
}
for (int iRwCount = 0; iRwCount < dsIncentivePay.Tables[0].Rows.Count; iRwCount++)
{
DataRow oDrTemp = oDtTemp.NewRow();
for (int iCol = 0; iCol < dsIncentivePay.Tables[0].Columns.Count; iCol++)
{
oDrTemp[dsIncentivePay.Tables[0].Columns[iCol].ColumnName.ToString()] = dsIncentivePay.Tables[0].Rows[iRwCount] [iCol].ToString();
}
oDtTemp.Rows.Add(oDrTemp);
}