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.
Hi Mike and all,
We had recently upgraded our computers to Win 7. The Ultragrid column value in one of the grids was working fine in XP. As part of Win7 we are using version 10.3 of the control. In Win 7, for some users the value displays correctly but for many the column value is displayed as {LOC}nnnnnn in stead of actual value from the database. In most of the grids, the values disply properly. We have not made any changes to the code. Do you have any clue?
Thanks,
Vivek
Hi Vivek,
I assume that "{LOC}nnnnnn" is the MaskInput value of the column. I can't see any reason why this would ever display as a literal value, though.
Do you have the latest service release?
How to get the latest service release - Infragistics Community