Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
rtutus
Aged Yak Warrior
522 Posts |
Posted - 2007-07-20 : 16:48:52
|
Hi there,I wanna include a calculated column as part of my columns in the datagrid.Let s say: the datagrid gets the columns: col1, col2, col3 from the databaseI want to add another column in my datagrid: col4But col4 will be: col4= col1 + col2 - col3 (just an example)I guess I should do this in ItemDataBound , right?But in ItemDataBound how do I make that happen:col4= col1 + col2 - col3 Also, how should be the datagrid column: col4 defined in the datagrid aspx page: boundcolumn or ItemTemplate?Thanks a lot. |
|
|
|
|