Hi Guys
I'm seeing an empty row for some of my rows between the row data and the AutoPreview field. In the attached image, the row highlighted in red is sitting between my row data and the autopreview field for the row. Same issue for the last row. Any suggestion on what might be causing this?
Thanks.
Just to clarify, this empty row does not always show up. I can refresh my grid multiple times, sometimes it's there, sometimes it's not. I have not figure out a pattern yet.
Hi Mike
Thanks for the response. As I said in the question, this is not something that can be reproduced readily on demand so I'm not sure a simplified sample code would show the issue. At this point I just have 2 questions. First, has this issue ever been reported? Second, can I get some advice on where to look? I would like to dig further into this myself, but any advice on where to start would be much appreciated.
Richard Zhu
Ah, okay, now it makes more sense. I would be very curious to see what the UIElementViewer shows for the area you highlighted in red. If that's a CellUIElement, for example, then that would indicate that there is a third column that is set to show on a second logical row. If it shows that it's part of the preview area element, then that would indicate that the text for the preview cell contains line feeds or special characters at the beginning. Or maybe it's something else entirely.
all 3 rows are for the same patient. There are only 2 columns, Patient Name and Notifications. Notifications column for all 3 rows contain the same icon. The text "Lorazepam Injectable, etc." in the first row is the AutoPreview area for the first row. You can see there is no gap between the preview area of the row data, which is the patient name "Dietr....". But for second and third rows, you can see an extra blank row between the text in preview areas and row data (patient name and notification icon). I will download the UIElementViewer and play with that.
Thanks for your help.
The more I look at this screen shot, the more puzzling it becomes. The AutoPreview shows underneath the row. But looking at the screen shot, I can see the RowSelector on the left for the first row and it seems to encompass the entire height of the row, and the Patient Name cell also fills the entire height of the row. So I don't see any AutoPreview here.
In the second row, the red outline obscures the borders, so perhaps the AutoPreview is showing on the second and third rows, but not the first row?
I guess another approach you could take in order to track this down would be to try to find out what UIElement is in the gap there (if any). You could try using the UIElementViewer.
Use the link above to download the utility. And there are instructions on how to use it here.
Hi Richard,
I think a sample would still be useful to us even if it doesn't (always) show the problem. It's really hard to even tell what we are looking at in this screen shot. I can't tell what part is a grid row, what part is a row, what part is the AutoPreview area. There's not enough context to tell what I am looking at here.
To answer your questions:
1) Not, I've never heard any other reports of a space or an extra line showing up at random. My best guess is that the text you are using here contains a carriage return and/or line feed in the actual content. Although that would not explain why it shows up sometimes and not others.
2) I would examine the actual text of the field and try to pull it apart one character at a time and see what the first few characters are just to see if there are extra line feeds or special characters at the top of the AutoPreview field.
I suppose it's also possible that this is some kind of artifact of the grid's RowLayout - assuming you are even using RowLayouts. If not, maybe it's a Groups & Levels issue where you have an unbound column that is on the second level of the row.
Like I said, though, it's really hard to even make wild guesses here, since the screen shot gives so little context.