|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to set focus on a row after sorting in a grid view?
Hi all,
I am able to set focus on a row in a gird view when it the row is clicked. But when I sort the grid view, the focus does not move with the sorted row. This what I am doing protected void ASPxGridView1_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e) { ASPxGridView1.SettingsBehavior.AllowFocusedRow = true; int visibleRow; if (int.TryParse(e.Parameters, out visibleRow)) { System.Data.DataRow row = ((ASPxGridView)sender).GetDataRow(visibleRow); if (row != null) { int id = Convert.ToInt32(row[colNameInjectionId]); ASPxGridView1.FocusedRowIndex = visibleRow; } } } Can any one please help. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stored Procedure unable to print using sum with case statement | mahalirajesh | Database | 2 | 05-13-2008 11:10 AM |
| How to set a particular column of a data grid to set to the desired length in VB.NET | tabrez_kooldude | .NET | 2 | 01-31-2008 10:44 PM |
| T-SQL Trigger | Mosser | Database | 2 | 06-14-2007 03:20 PM |
| Getting a GUI to run | Eric | Java | 4 | 04-14-2006 10:09 AM |
| Input string was not in a correct format | mdengler | ASP.NET | 0 | 11-26-2002 03:32 PM |