-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: BalajiKrishnan
Message 1 in Discussion

Dear All,   My Requirement is   I have a Datagrid which is filled with data and I have 
a edit button in the datagrid.   when the update button is clciked after editing the 
data the particular record has to be updated  only in the data table.   how can i 
update the record in the datatable.   thanks 
Balaji 
Code: Sub BindGrid()         Dim workTable As DataTable = New DataTable()
        Dim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
                           "Data Source= '" & txtDSName1 & "';" & _
                           "Extended Properties=""Excel 8.0;"""         Dim myData As 
New OleDbDataAdapter("SELECT * FROM [Sheet1$]", strConn)
        myData.Fill(workTable)
        DataGrid1.DataSource = workTable.DefaultView
        DataGrid1.DataBind()
        
End Sub 
Sub MyDataGrid_Update(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
           
       <-- How can I update the record --->
       
End Sub  

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to