2009-05-07 2 views

답변

0

이렇게하면 웜을 열 수 있습니다. 정렬, 그룹화 및/또는 필터링이 활성화 된 경우 어떻게 작동합니까?

는 ... 여기에 하나가 (다른 문제를 무시)이다,이 작업을 수행하는 방법은 무리가있다

protected void ASPxGridView1_Init(object sender, EventArgs e) { 
    // Creates a column, customizes its settings and appends it to the Columns collection; 
    GridViewDataTextColumn colTotal = new GridViewDataTextColumn(); 
    colTotal.Caption = "IdValue"; 
    colTotal.FieldName = "IdValue"; 
    colTotal.UnboundType = DevExpress.Data.UnboundColumnType.String; 
    colTotal.VisibleIndex = ASPxGridView1.VisibleColumns.Count; 
    ASPxGridView1.Columns.Add(colTotal); 
} 
// Populates the unbound column. 
protected void ASPxGridView1_CustomUnboundColumnData(object sender, ASPxGridViewColumnDataEventArgs e) { 
    if (e.Column.FieldName == "IdValue") { 
     e.Value = e.GetListSourceFieldValue("Id") + " " + e.GetListSourceFieldValue("Value"); 
    } 
} 

http://devexpress.com/Help/?document=ASPxGridView/CustomDocument3770.htm&levelup=true