Jump to content
Software FX Community

Setting the Focus on Data Grid


Recommended Posts


I have a request to immediately show the most recent data first in the data grid.  However, I do not want the chart to change.  It's oldest --> newest date now but scrolls a ways over to the right. 

Is it possible to get the data grid to start scrolled as far as possible over to the right instead of the left?



Link to comment
Share on other sites

You can use the ScrollPosition property of the DataGrid; this property scrolls the data horizontally to the specific column in the grid. You can do as follows:

chart1.DataGrid.Visible = true;

chart1.DataGrid.ScrollPosition = 20;

The above value will scroll the DataGrid to the 20th column.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...