I have a GridView that I want to use for 2 different stored procedures: one has 6 columns and the other 11. So I want to dynamically populate the grid with the AutoGenerateColumns.
However, I have one column that needs to be formatted to currency in both queries. I can do this with: "CAST(myColumn AS MONEY) AS Amount" and it formats it currency format in the output, but the GridView ignores the formatting. Besides that, I would like to right align the column too.
How do I have my cake and eat it too?
However, I have one column that needs to be formatted to currency in both queries. I can do this with: "CAST(myColumn AS MONEY) AS Amount" and it formats it currency format in the output, but the GridView ignores the formatting. Besides that, I would like to right align the column too.
How do I have my cake and eat it too?