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

Regarding scroll event in Grid Grouping Control

Thread ID:

Created:

Updated:

Platform:

Replies:

91558 Nov 24,2009 07:57 AM UTC Nov 26,2009 08:40 AM UTC Windows Forms 5
loading
Tags: GridControl
Rohit Kumar
Asked On November 24, 2009 07:57 AM UTC

Kindly Tell me how do i know while scrolling in Grid grouping Control that i reached to the end of grid. Please reply me as soon as possible
Regards

Jisha Joy [Syncfusion]
Replied On November 24, 2009 09:15 AM UTC

Hi Rohit,

You could handle the TableControlHScrollPixelPosChanged event to achieve the desired behavior.

int leftCol, rightCol;
void gridGroupingControl1_TableControlHScrollPixelPosChanged(object sender, GridTableControlScrollPositionChangedEventArgs e)
{
if (e.Inner.Success)
{
leftCol = this.gridGroupingControl1.TableControl.LeftColIndex;
rightCol = this.gridGroupingControl1.TableControl.ViewLayout.LastVisibleCol;
if (leftCol == 0)
Console.WriteLine("LeftVisibleColumn: " + this.gridGroupingControl1.TableDescriptor.Columns[leftCol].Name + " " + "RightVisibleColumn: " + this.gridGroupingControl1.TableDescriptor.Columns[rightCol - 1].Name);
else
Console.WriteLine("LeftVisibleColumn: " + this.gridGroupingControl1.TableDescriptor.Columns[leftCol - 1].Name + " " + "RightVisibleColumn: " + this.gridGroupingControl1.TableDescriptor.Columns[rightCol - 1].Name);
}
}


Please let me know if this helps.

Regards,
Jisha

Rohit Kumar
Replied On November 24, 2009 10:17 AM UTC

i want to do it while scrolling vertically. Kindly Reply asasp.

Jisha Joy [Syncfusion]
Replied On November 24, 2009 11:03 AM UTC

Hi Rohit,
One way you can identify when the scrollbar is at the bottom is to test by using the following code:

void gridGroupingControl1_TableControlVScrollPixelPosChanged(object sender, GridTableControlScrollPositionChangedEventArgs e)
{

if (e.Inner.Success)
{

if(this.gridGroupingControl1.TableControl.ViewLayout.LastVisibleRow == this.gridGroupingControl1.Table.DisplayElements.Count - 1)
{
Console.WriteLine("Reached");
}

}

}

Regards,
Jisha

Rohit Kumar
Replied On November 26, 2009 07:34 AM UTC

Thanx It worked for me..

Jisha Joy [Syncfusion]
Replied On November 26, 2009 08:40 AM UTC

Hi Rohit,

Thank you for your update.

Regards,
Jisha

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

;