M
mpao
I have a ASP .NET application with GridView control bound to a
SQLDataSource, which calls a stored procedure. However, some of the
data needs to be localized (translated, formatted) before it's shown to
the user. It's not feasible to do this within the stored procedure. My
understanding is that to edit the values in a databound GridView, I
must specify the UpdateCommand-property. But I don't want to update
anything back to the database!
I tried creating a disconnected DataSet, changing the values and then
binding the GridView to that, but noticed that the automatic paging and
sorting features stopped working. I'm really not interested in writing
paging and sorting handlers when the GridView control is supposed to
contain those features already.
What is the easiest way use the GridView control that allows me to just
modify the dataset before displaying it, without ever taking any
changes back to the server?
Toni
SQLDataSource, which calls a stored procedure. However, some of the
data needs to be localized (translated, formatted) before it's shown to
the user. It's not feasible to do this within the stored procedure. My
understanding is that to edit the values in a databound GridView, I
must specify the UpdateCommand-property. But I don't want to update
anything back to the database!
I tried creating a disconnected DataSet, changing the values and then
binding the GridView to that, but noticed that the automatic paging and
sorting features stopped working. I'm really not interested in writing
paging and sorting handlers when the GridView control is supposed to
contain those features already.
What is the easiest way use the GridView control that allows me to just
modify the dataset before displaying it, without ever taking any
changes back to the server?
Toni