In a from with RadGrid, data of selected row is read and assigned to related textboxes, RadComboBox, RadDatePicker above Grid. There is an update button as well to make change to the fields. I want to refresh RadGrid or updated row after making change. everything works but after making changes, I want the last row that I was working on it to be selected. with below code, first row is selected:
protected void BtnUpdate_Click(object sender, EventArgs e)
{
Update(); // function for updating fields
//Below are codes to updating grid after making changes but it
//selects the first row
DataTable dp = Dbo.PreOrder.Grid();
GridPreOrder.DataSource = dp;
GridPreOrder.DataBind();
}