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??

MetaGuru
  • 42,847
  • 67
  • 188
  • 294

2 Answers2

6

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
  • 40,768
  • 21
  • 80
  • 118
0

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

Jason
  • 15,915
  • 3
  • 48
  • 72