Home All Groups Group Topic Archive Search About
Author
12 Nov 2007 4:52 PM
Scott M.
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

Author
18 Nov 2007 8:30 AM
Teemu Keiski
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

Show quoteHide quote
"Scott M." <s-mar@nospam.nospam> wrote in message
news:ey$B1wUJIHA.3516@TK2MSFTNGP02.phx.gbl...
> 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
>
Author
19 Nov 2007 1:48 AM
Scott M.
Thanks, but can you explain "how" I can do this?

Show quoteHide quote
"Teemu Keiski" <jot***@aspalliance.com> wrote in message
news:uh22L1bKIHA.4196@TK2MSFTNGP04.phx.gbl...
> 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
>
> "Scott M." <s-mar@nospam.nospam> wrote in message
> news:ey$B1wUJIHA.3516@TK2MSFTNGP02.phx.gbl...
>> 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
>>
>
>