Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
14225 | May 21,2004 01:12 PM UTC | May 24,2004 01:04 AM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
int lastPosition = -1;
private void gridDataBoundGrid1_ScrollTipFeedback(object sender, Syncfusion.Windows.Forms.ScrollTipFeedbackEventArgs e)
{
if(e.ScrollBar.ToString() == "Horizontal")
{
if(lastPosition == -1)
{
lastPosition = e.Value;
}
if(lastPosition > e.Value) //moving left
{
e.Text = string.Format("Left Col= {0}", e.Value - 1);
}
else if(lastPosition < e.Value) //moving right
{
int cols = this.gridDataBoundGrid1.ViewLayout.LastVisibleCol - this.gridDataBoundGrid1.LeftColIndex - 1;
e.Text = string.Format("Right Col= {0}", e.Value + cols);
}
lastPosition = e.Value;
}
}
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.
This page will automatically be redirected to the sign-in page in 10 seconds.