Please refer the below steps to persist the ViewState in subsequent PostBack for any other operations such as Editing:
C# Session["StRowIndex"] = nextSetVal; VB Session("StRowIndex") = nextSetVal
C# string stRow = Session["stRowIndex"].ToString(); //avoid rebind if no change in value. if (stRow != "" && bindVal != stRow) { BindGrid(); } VB Dim stRow As String = Session("stRowIndex").ToString() 'We bind the grid in this method. If stRow <> "" Then 'Avoid rebinding bindVal = stRow BindGrid() End If Sample: http://www.syncfusion.com/support/user/uploads/ViewState_4e612518.zip |
This page will automatically be redirected to the sign-in page in 10 seconds.