Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

Selecting Updated row in RadGrid

$
0
0

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();
 
}

 

 

 


Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>