Hi,
If you are executing your query and your result is in form of DataSet the you can get each column name using
DataColumn
Please check
this[
^] discussion, you can find your answer from there.
Let me know if you are not storing your query result in DataSet.
Good luck
Thanks
-Amit Gajjar