because i have more than 40 columns on my grid, i can't do formatting at the server side one by one. I could but i have to find out the exact position or column index if you will. So i decided to format everything in the result from database. so now one of my column has $12,000.00. when i retrieve this the grid keeps giving me an error saying that
Input string was not in a correct format.Couldn't store <$25,659.00> in Total Column. Expected type is Decimal. why is the grid keeps automatically assigning the type to my column instead of retrieving it just like the way it is.
here is my select statement
select '$' + convert(varchar, cast(abs(Total) as money),1))) as Total from Student
Second question is how do i format the header to have certain size and then data rows with automatic fit to the data length.
Third is can i have a header for each of the Group By Field?
please help me thanks and appreciate alot.
Input string was not in a correct format.Couldn't store <$25,659.00> in Total Column. Expected type is Decimal. why is the grid keeps automatically assigning the type to my column instead of retrieving it just like the way it is.
here is my select statement
select '$' + convert(varchar, cast(abs(Total) as money),1))) as Total from Student
Second question is how do i format the header to have certain size and then data rows with automatic fit to the data length.
Third is can i have a header for each of the Group By Field?
please help me thanks and appreciate alot.