質問

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

どうにかして可能になりますか...

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

...必要に応じて値を変更できますか?

CRAP:

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

誰でも私はそのことか何かをオーバーライドする方法を知っていますか?

役に立ちましたか?

解決

テンプレート列に使用する完全なスニペットを以下に示します...

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

他のヒント

<asp:templatecolumn> を使用し、< href = "http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.datagrid.itemdatabound.aspx" rel = "nofollow noreferrer"> ItemDataBound イベント

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top