Hi Johnson,
Yes you can, using column.ColumnName, like this
For example, to retrieve the name of the 5th column from the DataTable object,
String colName = dtBooks.Columns[4].ColumnName ;
Note that the column index starts with 0.
To get table name from datatable you can use
private void GetTableNames(DataSet dataSet)
{
foreach(DataTable table in dataSet.Tables)
{
Console.WriteLine(table.TableName);
}
}
Hope this helps you a bit.
Regards,
RK