views:

334

answers:

2
<asp:BoundColumn DataField="pos" HeaderText="Principal Office" />

would it be possible to somehow...

<asp:BoundColumn DataField="postProccess(pos)" HeaderText="Principal Office" />

...so I could modify the value as needed?

CRAP:

A field or property with the name 'postProcess(pos)' was not found on the selected data source.

Anyone know how I can override that thing or something??

A: 

use an <asp:templatecolumn> and do the post processing in the ItemDataBound event

Jason
+3  A: 

Here is the full snippet you'd want to use for your template column...

<asp:TemplateColumn HeaderText="Principal Office">
   <ItemTemplate>
      <%# postProcess(Eval("pos")) %>
   <ItemTemplate>
<asp:TemplateColumn>
Scott Ivey