2012-09-10 59 views

回答

2

您可以處理編輯器即將以非聚焦模式CustomRowCellEdit顯示時發生的事件。

private 
void gridView_CustomRowCellEdit(object sender, CustomRowCellEditEventArgs e) 
{ 
    if (e.Column != columnWithButtonEdits) { 
     BusinessObject obj = (BusinessObject) gridView.GetRow(e.RowHandle); 
     e.RepositoryItem.Buttons[0].Text = obj.SomeProperty;     
    } 
} 

當然,你要投RepositoryItem你的類型,並得到你所需要的按鈕。

相關問題