Hi and thanks for reading my question,
I have a UltraWinGrid with a large number of rows, let's say more than 100. On the screen at a given time there are visible only about 7, 8 of them. I'm looking for a way of showing only the rows that are fully visible, so if the last row is not completely visible it should not be visible until the grid is scrolled.
I've searched for a property or for a method of doing this. It can easily be done for columns but i haven't found a way to do it for rows. Also in this case resizing the grid is not an option.
Thanks for any tips,
Adrian Faciu.
Mike,
Can i have a session with you so you can see what's happening exactly?
Please let me know.
Mike thanks for your quick reply.
But when I am using the code which you posted, I don't see any grid rows on the first scroll region and when I scroll down the grid it behaves very strangely.
Grid rows moves up and down. I can't mention how it behaves. but it's never get steady.
Saurabh shah said:No. I am trying to open a hyperlink when user tried to click on partial visible row.
If you are using the code I posted here, then you cannot possibly have a partially-visible row. This code eliminates the display of partially visible rows. So I don't understand what you are asking.
No. I am trying to open a hyperlink when user tried to click on partial visible row.
So for now I am doing like this but if you have better solution, please suggest it.
Private Sub grdResults_BeforeRowRegionScroll(sender As Object, e As Infragistics.Win.UltraWinGrid.BeforeRowRegionScrollEventArgs) Handles grdResults.BeforeRowRegionScroll
if grid.activerow.cells("key").activated=true
'Do something
end if
end sub
So when user click on partial visible row,it calls this event.
Why are you checking the Width here? This post is about the rows, not the columns. Are you trying to stop the grid from scrolling horizontally?