I was wondering if there is a grid property to set so that when the column width is too small to display the entire number in the grid cell, it shows some indication instead of just truncating the number. Excel handles it by displaying ######.
ADAdministrator Syncfusion Team August 1, 2003 10:00 AM
There is no property to handle this. You would have to use events to do this. One event would be QueryCellFormattedText. You could also do it in PrepareViewStyleInfo.
LALou Ann SinicropeAugust 2, 2003 12:12 PM
How would I go about handling this event to get the result I'm looking for?
ADAdministrator Syncfusion Team August 2, 2003 02:40 PM
Since you have to use Graphics.MeasureString to compute the reqired width, it makes more sense to use DrawCell to handle this work since the Graphics object is already available in it. If you use PrepareViewStyleInfo, then you would have to call CreateGraphics to get a Graphics object. In DrawCell, you can test the text to be drawn and if it will not fit, replace it with asterisks. here is a snippest that does this in column 2.