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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid displaying half-rows

Thread ID:

Created:

Updated:

Platform:

Replies:

86641 Jul 9,2009 09:29 AM UTC Jul 11,2009 09:26 AM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On July 9, 2009 09:29 AM UTC

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

Lingaraj S [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;