I want to select a particular row of a DevExpress MVC GridView, which contains a keyvalue. I tried the following codes in the gridview.
settings.DataBound = (sender, e) =>
{
MVCxGridView grid = (MVCxGridView)sender;
grid.PageIndex = 5;
};
settings.PreRender = (sender, e) =>
{
MVCxGridView grid = (MVCxGridView)sender;
grid.FocusedRowIndex = grid.FindVisibleIndexByKeyValue(35);
};
Here what I wish to get is to highlight the row of 5th page which contains the keyvalue 35. The above code does not work for me for row selection.
Please anybody suggest a solution.
Thanks in advance.