We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Grid displaying half-rows

As you can see on the attachment scrollbar is docked below the grid. Last visible row is cut out. The final last row (after scrolling down couple of times) is displayed properly, with some gray space between it and the scrollbar.

Can we avoid cut down half-rows by enabling some option within the grid and make it behave like for the last row?

Cheers



Grid problem_5dea8b61.jpg

1 Reply

LS Lingaraj S Syncfusion Team July 11, 2009 09:26 AM UTC

Hi Michal,

Thank you for your interest in Syncfusion product.

If you want to display the lost row, when the last row half in GridControl. Please try using HasPartialVisibleRows property in QueryRowHeight event to achieve this behavior. The HasPartialVisibleRows is used to check the half visble row in ViewLayout.

Refer the code below:

void gridControl1_QueryRowHeight(object sender, GridRowColSizeEventArgs e)
{
int row = this.gridControl1.ViewLayout.LastVisibleRow;
if (this.gridControl1.ViewLayout.HasPartialVisibleRows == true)
{
if (e.Index == row)
{
e.Size = 10;
e.Handled = true;
}
}
}


Please let me know if you have any queries.

Regards,
Lingaraj S.

Loader.
Live Chat Icon For mobile
Up arrow icon