Thanks for the answer…..
It works, but I had a requirement where the rows should appear in the order in which they were received.
So Instead of using a DataRow I use a ValueRow and insert both the ValueRow and the TextRow into the HeaderRows collection.
Imported from legacy forums. Posted by Nefarious Hawk (had 4067 views)