P
Patrick Delifer
HI,
I am trying to update a DataGrid where I want to rebind just the row that
was updated.
Here's the situation:
1) Updating is not a problem, it works fine.
2) I am not using ItemCommand (edit, delete, etc)
3) the button that issues the update/rebind is outside the datagrid, on the
web form.
Till now I have been issuing a full DataBind for the entire DG, that I read
as an Arraylist. But i would like to rebind only the row that was affected.
I looked into DataGridItem but how can I bind a DataSource to a DGitem?
here's a code snippet of how i do it now:
Order.UpdateOrder(int.Parse(lblOrderID.Text), txtWaybill.Text,
int.Parse(ddServices.SelectedValue), shippID, receivID, billtoid, );
ArrayList waybills = neworder.GetWaybills();
dgOrder.DataSource = waybills;
dgOrder.DataBind();
Thanx
I am trying to update a DataGrid where I want to rebind just the row that
was updated.
Here's the situation:
1) Updating is not a problem, it works fine.
2) I am not using ItemCommand (edit, delete, etc)
3) the button that issues the update/rebind is outside the datagrid, on the
web form.
Till now I have been issuing a full DataBind for the entire DG, that I read
as an Arraylist. But i would like to rebind only the row that was affected.
I looked into DataGridItem but how can I bind a DataSource to a DGitem?
here's a code snippet of how i do it now:
Order.UpdateOrder(int.Parse(lblOrderID.Text), txtWaybill.Text,
int.Parse(ddServices.SelectedValue), shippID, receivID, billtoid, );
ArrayList waybills = neworder.GetWaybills();
dgOrder.DataSource = waybills;
dgOrder.DataBind();
Thanx