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

Set focus on last row in a Grid

1 Answer 315 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prava kafle
Top achievements
Rank 1
Prava kafle asked on 04 Nov 2010, 04:07 PM
Hi,
I have top and bottom panels. Top panel wraps a RadGrid, bottom panel wraps a text box and a save button. If the height of a grid is larger than the container, I want to display  grid  with a focus on last row. I know how to do this in asp.net Gridview but couldnot find the currentcell property for RadGrid.

In ASP.NET GRIDVIEW, given below is the code to focus on last row;
 dataGridView1.CurrentCell = dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[0];

Can someone help me out on this?

Thanks!
Prava
       

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Nov 2010, 07:40 AM
Hello,

For accessing a particular cell in the grid, use the ColumnUniqueName (for the row) as described in the documentation.
Accessing cells and rows


And if you want to implement Excel-like grid, then the following code library will be of help.
Excel-like RadGrid


-Shinu.
Tags
Grid
Asked by
Prava kafle
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or