all groups > asp.net datagrid control > november 2007 >
You're in the

asp.net datagrid control

group:

Modfying bound data in a GridView?


Modfying bound data in a GridView? Scott M.
11/12/2007 11:52:37 AM
asp.net datagrid control:
In ASP .NET 1.x, I could have a bound column in a DataGrid and still
"massage" that data so slightly different data was presented in the DataGrid
(using DataBinder.eval and a custom databinding expression).

Can I do something similar with a DataGridView? I want to be able to take a
string from a DataBase, which is being returned via my TableAdapater, modify
the string slightly and then have the GridView bind to this new data.

Thanks,

Scott

Re: Modfying bound data in a GridView? Teemu Keiski
11/18/2007 10:30:30 AM
Same applies in GridView plus you could also use RowDataBound event (equal
to ItemDataBound in v1.x in DataGrid)

You just say DataGridView which confuses me a little, DataGridView is in
WinForms not in ASP.NET


--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

[quoted text, click to view]

Re: Modfying bound data in a GridView? Scott M.
11/18/2007 8:48:03 PM
Thanks, but can you explain "how" I can do this?

[quoted text, click to view]
AddThis Social Bookmark Button