This is a migrated thread and some comments may be shown as answers.

Bring selected cell into view after binding data to grid

1 Answer 42 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gabriela
Top achievements
Rank 1
Gabriela asked on 21 Apr 2011, 02:39 PM
I have an application that uses the drag/drop feature of the gridview.  When a user drops a cell, my application has to update many cells from rows both above and below the target cell (it is a scheduling application).

My application updates a back-end database and then reloads and rebinds the grid.   Once the grid has been rebound, I need to select the cell that was the previous target cell and also ensure that it is in the visible grid area (in the case where scroll bars are needed).

Since each cell has a unique value (a shop order number from our back end system), I am able to store that value to a variable and then select that same cell after rebinding.

However, when the grid finishes binding, it seems to be showing the bottom of the grid.  I need the grid to bring into focus the selected cell.

Thanks for your help. 

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 26 Apr 2011, 09:33 AM
Hello Gabriela,

Thank you for writing.

You can bring a cell into view by making the specified cell CurrentCell. Please refer to this help article, which demonstrates how you can do that.

Should you have any other questions, do not hesitate to write back.
 
All the best,
Stefan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Gabriela
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or