-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Mess_With_The_Bestone
Message 3 in Discussion
Hi Alladin Thanx for ur reply
I am doing this under the Datagrid Update Command, now the problem is I am
not able to fetch the recently modified data from the datagrid this is the code
whic I am using for the datagrid Updation. Regards
Shiva The following is the code which I am using for the updation process
Private Sub DataGrid1_UpdateCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
DataGrid1.UpdateCommand Dim customerid, companyName, contactName As
String
Dim tb As System.Web.UI.WebControls.TextBox
tb = CType(e.Item.Cells(1).Controls(0),
System.Web.UI.WebControls.TextBox)
customerid = tb.Text
tb = CType(e.Item.Cells(2).Controls(0),
System.Web.UI.WebControls.TextBox)
companyName = tb.Text
tb = CType(e.Item.Cells(3).Controls(0),
System.Web.UI.WebControls.TextBox)
contactName = tb.Text Dim dr As mynewdataset.CustomersRow
dr = Mynewdataset1.Customers.FindByCustomerID(customerid)
dr.CompanyName = companyName
dr.ContactName = contactName
SqlDataAdapter1.Update(Mynewdataset1)
DataGrid1.EditItemIndex = -1
DataGrid1.DataBind()
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]