|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Modfying bound data in a GridView?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 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 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 > 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 >> > >
Why Does This Not Work?
Datagrid default date format Reload/refresh data in datagrid wrap text in datagrid cell wrapping text in datagrid Programattically setting gridview to edit mode GridView - Hyperlink Hiding grid columns based on some value in row DataView Borders Editing/Deleting/Inserting Records using ASPxGridView |
|||||||||||||||||||||||