L
Luqman
I added new rows to the GridView with the following code.
I am using SqlDataSource and Sql Server 2000 Northwind Database Customers
table.
Dim sqlarg As New DataSourceSelectArguments
Dim dv As New System.Data.DataView
dv = SqlDataSource1.Select(sqlarg)
Dim drNewRow As Data.DataRowView = dv.AddNew
drNewRow(0) = "LUQ1"
drNewRow(1) = "LUQMAN"
drNewRow.EndEdit()
GridView.DataSource=dv
GridView.DataBind()
The above code is just adding the row on the fly, but after adding various
rows, I want two choices.
1. Either Exit from the Web Form and Cancel all the updates.
2. Transfer the updated Rows, back to the Database.
How can I achieve the above Two Scenarios.
I want to Add/Edit Records within the Dataset, use them for calculations and
then finally update batch to the database or cancel the update.
Any idea please ?
Best Regards,
Luqman
I am using SqlDataSource and Sql Server 2000 Northwind Database Customers
table.
Dim sqlarg As New DataSourceSelectArguments
Dim dv As New System.Data.DataView
dv = SqlDataSource1.Select(sqlarg)
Dim drNewRow As Data.DataRowView = dv.AddNew
drNewRow(0) = "LUQ1"
drNewRow(1) = "LUQMAN"
drNewRow.EndEdit()
GridView.DataSource=dv
GridView.DataBind()
The above code is just adding the row on the fly, but after adding various
rows, I want two choices.
1. Either Exit from the Web Form and Cancel all the updates.
2. Transfer the updated Rows, back to the Database.
How can I achieve the above Two Scenarios.
I want to Add/Edit Records within the Dataset, use them for calculations and
then finally update batch to the database or cancel the update.
Any idea please ?
Best Regards,
Luqman