Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
UJ #1
DataGrid with values not saved to the database but want to sort it.
I have a datagrid where I load the values initially and then the user can
make changes to the data. That all works fine. But I want to add column
sorting which I've done before. That works fine. Problem is putting the two
together because every example of sorting I have seen shows going back to
the database. But I haven't saved my changes yet so I can't go back to the
database.
Here's an example:
Load page - read from the database.
Person changes a value on record 1
Person changes a value on record 3
They then actually save the values to the database.
But if sorting goes back to the database, then is they sort after record 1
changes, they will lose those changes.
I don't want to write out the changes until they decide they want to save
everything.
Any ideas?
TIA.
Jeff.
UJ Guest
-
read row values from datagrid and populate in new datagrid values from connected
Hello, i am new in asp.net and i am having a question: I am having a datagrid_1 in which i am showing the context of PatientDetails table.... -
Datagrid printing calculatet values from a database.
Hi there ! I have a birthday-date colum in my database and want to precent the calculatet ages in a Datagrid. Is that possible ? ... -
PSD File Saved As EPS: White becomes 1% values in CMYK
I am working in Photoshop 6. When I am working in my PSD layer file I have white as 0% CMYK values. When I save an EPS to place in my Quark layout,... -
Ado sort error-Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB.
Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB. hi, guys i have asp... -
Adding custom values and database values to DropDwonList
The other way is to create a DataTable, put the --None-- as the first Row, then read the datareader into the DataTable, and append the --other-- at... -
Brock Allen #2
Re: DataGrid with values not saved to the database but want to sort it.
> I don't want to write out the changes until they decide they want to
So you will need to store these changes somewhere. How are you rebuilding> save everything.
the grid when the users sorts? Are you going back to the database? If so,
then you'd need to DataBind from your database, and then for any data the
user has changed you'd need to overwrite the data loaded from data binding.
So I'd look into the DataGrid's ItemDataBound event to get the row that was
just data bound and manually overwrite the data as necessary. How do you
store the data? That's up to you. Perhaps a DataSet stored in Session? Just
an idea.
-Brock
DevelopMentor
[url]http://staff.develop.com/ballen[/url]
Brock Allen Guest



Reply With Quote

