R
Ryan Ternier
I'm having the issue is when I re-bind my repeater to show the changes
done to it from the code behind.
I'm binding this repeater from a DataTable that is stored in the
ViewState for now. It might change later, but that's where I'm gettting
it from.
I have an Image Button that allows users to move a Record Up one space
(order).
My Code grabs the DataTable from the ViewState, does the changes (which
work correctly), then procedes to bind the DataTable to the Repeater.
It works all find and dandy, but it doesn't change the order. THis is
because the acual order of the rows hasn't changed at all.
So I decide to do:
Repeater.DataSource = tblTemp.Select("Order > 0","ORDER DESC");
This works, but all the column headers are now gone, and I can't do any
binding like:
((TextBox)e.Item.FindControl("txtSectionName")).Text =
(String)System.Web.UI.DataBinder.Eval(e.Item.DataItem,"Name");
Seeing the .Select of the DataGrid returns an array of Rows, is there
any other way of doing this asside from creating a brand new DataTable
from the array of rows?
/RT
done to it from the code behind.
I'm binding this repeater from a DataTable that is stored in the
ViewState for now. It might change later, but that's where I'm gettting
it from.
I have an Image Button that allows users to move a Record Up one space
(order).
My Code grabs the DataTable from the ViewState, does the changes (which
work correctly), then procedes to bind the DataTable to the Repeater.
It works all find and dandy, but it doesn't change the order. THis is
because the acual order of the rows hasn't changed at all.
So I decide to do:
Repeater.DataSource = tblTemp.Select("Order > 0","ORDER DESC");
This works, but all the column headers are now gone, and I can't do any
binding like:
((TextBox)e.Item.FindControl("txtSectionName")).Text =
(String)System.Web.UI.DataBinder.Eval(e.Item.DataItem,"Name");
Seeing the .Select of the DataGrid returns an array of Rows, is there
any other way of doing this asside from creating a brand new DataTable
from the array of rows?
/RT