列名が変数によって決定されるASPxGridViewにバインドされたメモリ内データセットがあります。今私は対応する変数の値でマークアップの列のFieldNameを割り当てることを好むでしょうが、<%#Eval(...)%>
は次のエラーをスローします。GridViewDataTextColumn(<%#Eval(...)%>)の動的フィールド名
Parser Error Message: Databinding expressions are only supported on objects that have a DataBinding event. DevExpress.Web.ASPxGridView.GridViewDataTextColumn does not have a DataBinding event.
GridViewDataTextColumnのFieldName-Attributeにマークアップの変数を割り当てることはできますか?一般的には
<dx:GridViewDataTextColumn Caption="Product" FieldName="<%# Eval("ProductFieldName") %>">
ありがとう:)私はすでに実行時にそれをやっている方法を知っていました。私は何かを逃したと思ったので、マークアップの中で直接他の方法で行うことができました。 – Andreas