I've seen a page that had a datagrid that was displaying the database data in textboxes. I didn't see the code, but the guy that made it said that when somebody changed data in the textbox, that it automatically updated in the data base when the textbox field changed.

How can I do this? I want to update an access database without using edit/update buttons. So far, I have a datagrid that shows the data from my db, but it doesn't show it in textboxes, and it's not editable.

Code:
<asp:DataGrid 
         AllowSorting="true" 
         AlternatingItemStyle-BackColor="#E7EBFA"      
         AutoGenerateColumns="false" 
         Width="800" 
         CellPadding="5" 
         id="cptGrid" 
         runat="server" 
         ShowFooter="false" 
         ShowHeader="true">  
   <HeaderStyle  BackColor="#E6E6FF" />
   <Columns>  
      <asp:TemplateColumn 
	         SortExpression="Operator" 
	         HeaderText="Operator" 
                         ItemStyle-Width="100px" >
        <ItemTemplate>
          <%# Container.DataItem ( "Operator" ) %>
        </ItemTemplate>
     </asp:TemplateColumn>	
   </Columns>
That's what my datagrid looks like (I have about 8 more columns though). Here's some of the code w/ it:
VB Code:
  1. <script language="VB" runat="server">
  2. Sub Page_Load(Sender as Object, E as EventArgs)
  3.   Dim objConn     As OleDbConnection
  4.   Dim objComm     As OleDbDataAdapter
  5.   Dim strConn     As String
  6.   Dim strComm     As String
  7.   Dim objDataSet  As New DataSet
  8.  
  9.   'Build the connection string
  10.   strConn = "Provider=Microsoft.Jet.OLEDB.4.0;"
  11.   strConn += "Data Source=G:\database\cptInfo.mdb;"
  12.   strConn += "Persist Security Info=False"
  13.  
  14.   'Build the SQL string
  15.   strComm = "SELECT cptFileInfo.Operator " 'Im grabbing 8 more cols in the real code
  16.   strComm += "FROM cptFileInfo"
  17.  
  18.   'Create the connection and command objects
  19.   objConn = New OleDbConnection(strConn)
  20.   objComm = New OleDbDataAdapter(strComm, objConn)
  21.  
  22.   'Fill the dataset with the results of the query
  23.   objComm.Fill(objDataSet, "cptFileInfo")
  24.  
  25.   'Set the grid source to the dataset and bind the data
  26.   cptGrid.DataSource=objDataSet.Tables("cptFileInfo").DefaultView
  27.   cptGrid.DataBind()
  28. End Sub
  29.  
  30. </script>