i've set the following property on my grid:
now say i put the following value into it:
case (1) - if the cell is really small, it does the following (which i like):
case (2) - if the cell is a little bigger, it does the following (i don't like this):
if it's big enough to display that elipsis, i'd rather it display another digit of precision after the decimal place. with case (1) i'm ok sacrificing precision to get the ellipsis because otherwise the user has no means of knowing whether that says 872 or 87234591.
but with case (2), the user can see the decimal point so s/he knows the absolute size of the number in there (can't confuse 872 with 8725897)
case (3) - sometimes i get this:
in this case (3) there are four periods because the decimal place is right next to the ellipsis. this is confusing.
what i'd like is these cases to show:
any advice?
Hi,
The TextTrimming is done by the DotNet Framework GDI+ text drawing methods. So we really don't have any control over this, other than passing in an option that says to show an ellipsis if the text doesn't fit.
So the only way you could do something like this would to use a DrawFilter and draw the text yourself. You would have to measure the text to determine what fits and then draw it yourself using GDI+ in code.
that sounds terrifying. how do i determine how much of the text is visible?