2012-02-17 90 views

回答

0

如果你的DataGrid是

<Controls:DataGrid Name="versionInfo" PreparingCellForEdit="grid_ForEdit" > 

的處理程序是

private void grid_ForEdit(object sender, DataGridPreparingCellForEditEventArgs e) 
{ 
    TextBox box = e.EditingElement as TextBox; 
    // box.Text contains the text in that cell 
} 
相關問題