Phillip i have taken time to look at your interesting sample
and i could move up and down the row using values from a table in the DB but
i need to update changes to the table
I hooked it up with a submit button but it doesn't change the values
any ideas.. sleeping.
void Bind()
{
if (Session["FilesOrder"] == null)
{
dt = new DataTable("FilesOrder");
const string strSQL = "select * from FilesOrder";
SqlCommand myCommand = new SqlCommand(strSQL, myConnection);
SqlDataAdapter myAdapter = new SqlDataAdapter(myCommand);
myConnection.Open();
myAdapter.Fill(dt);
Session["FilesOrder"] = dt;
}
else
{
dt = (DataTable)Session["FilesOrder"];
}
Rote Rote said:
Thanks Phillip for the email and the hint and the approach
Will i be able to bind it to a table with this structure
id doc rank
1 a.doc 1
2 b.doc 2
3 c.doc 3
4 d.oc 4
What i really want to achieve is to be able to rank the doc files on
that table from 1-4 with no duplicates.
Would it be easy to retrieve my data from the database table to achieve
the same result?
Patrick