title: Telerik radGrid - possible to do use AllowAutomaticUpdates when Datasource = a dataset?
body: <p>I am setting the datasource of my radGrid to a dataset (that I have stored in session).
  I have enabled  AllowAutomaticUpdates and EnableViewState, implemented NeedDataSource, set DatakeyNames, etc. (see code below)</p>
  
  <p>However, when I press the Edit button and make a change and press the Update link, the record does not update and leave Edit Mode.....it just stays in edit mode, and no error of any kind occurs.</p>
  
  <p>So, the question is....does anyone know if radGrid with EnableViewstate even supports AutomaticUpdates, so the changes in the grid will be automatically pushed into the dataset to which it is bound?</p>
  
  <p>One would think you could read the documentation, but I have been unable to find a definitive answer.</p>
  
  <p>Thanks</p>
  
  <hr>
  
  <pre><code>&lt;telerik:Radgrid id="grid" runat="server" AllowPaging="True" AllowSorting="True" AllowAutomaticUpdates="true" 
              AutoGenerateEditColumn="True" GridLines="None" &gt;
  
  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
          If Not IsPostBack Then
              Dim data As New DataGateway
              Dim ds As DataSet = data.GetEmployeesByProgram(Year:=2009, ProgramName:="Long Term Incentive Stock Program")
              Dim dt As DataTable = ds.Tables(0)
              ds.Tables(0).PrimaryKey = New DataColumn() {dt.Columns("EmployeeNum"), dt.Columns("ProgramName"), dt.Columns("Year")}
              Session("datasource") = ds
              With Me.grid
                  .AllowAutomaticUpdates = True
                  .AutoGenerateColumns = True
                  .AllowSorting = True
                  .AutoGenerateEditColumn = True
                  .EnableViewState = True     'IS REQUIRED!!!
                  Me.grid.MasterTableView.AllowAutomaticUpdates = True
                  Me.grid.MasterTableView.EditMode = GridEditMode.InPlace
              End With
          End If
      End Sub
  
  
  
  
  Private Sub grid_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles grid.NeedDataSource
          Debug.WriteLine("NeedDataSource: " &amp; e.RebindReason.ToString)
          Dim ds As DataSet = CType(Session("datasource"), DataSet)
          Me.grid.MasterTableView.DataKeyNames = New String() {"EmployeeNum", "ProgramName", "Year"}
          Me.grid.DataSource = ds
  
      End Sub
  </code></pre>