HighTechTalks DotNet Forums  

Modfying bound data in a GridView?

ASP.net Data Grid Control microsoft.public.dotnet.framework.aspnet.datagridcontrol


Discuss Modfying bound data in a GridView? in the ASP.net Data Grid Control forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Scott M.
 
Posts: n/a

Default Modfying bound data in a GridView? - 11-12-2007 , 10:52 AM






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



Reply With Quote
  #2  
Old   
Teemu Keiski
 
Posts: n/a

Default Re: Modfying bound data in a GridView? - 11-18-2007 , 02: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

"Scott M." <s-mar (AT) nospam (DOT) nospam> wrote

Quote:
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




Reply With Quote
  #3  
Old   
Scott M.
 
Posts: n/a

Default Re: Modfying bound data in a GridView? - 11-18-2007 , 07:48 PM



Thanks, but can you explain "how" I can do this?

"Teemu Keiski" <joteke (AT) aspalliance (DOT) com> wrote

Quote:
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 (AT) nospam (DOT) nospam> wrote in message
news:ey$B1wUJIHA.3516 (AT) TK2MSFTNGP02 (DOT) 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





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.