Experts,
I want to my values in the UltraGrid as "#0.00" and after user clicks a cell, the value in the cell shows the original whole digital values.
For example, I have a column called "MD" and a value show as "1428.82" and after user clicks the cell, the value in the cell shows as "1428.8237".
My question is that, is there any Properties in the ultragrid for the user to set to get this functionality. Thanks very much.
Jeff
Hi,My requirements is to display total time in minutes (input data) as days hours minutes. For eg. The data which will be bound to grid is int 2200 mins. this we need to display as "1 day 12 hrs 50 mins" string format. We also need to maintain the sorting of the column as per day hour not as string sorting. The way i implemented is as follows :1) converted the minutes in the formated string and bound to grid as string "1 day 12 hrs 50 mins".
2) Implemented the sorting using custom comparator.Please let me know is any better way of achiving this. Can it be achived using Format if yes then how?thanks,Ravi
Hi Ravi,
The way you are doing it sounds fine to me.
To do this with a format would require you to write your own FormatProvider and I can see no reason why that would be any better than what you are already doing.
Another option would be to use a DataFilter, but that would require you to be able to translate the value both ways and once again, it wouldn't gain you much. The advantage of the DataFilter is that it doesn't require an extra (unbound) column and you would not need the sort comparer. On the other hand you would need an editor and you would have to translate the value in bother directions: formatted and unformatted.