hello
i don't set the row height, how to get the defalut row height? is there any property indicates the row height?
Hello,
You can try this:
void xamDataGrid1_Loaded(object sender, RoutedEventArgs e)
{
CellValuePresenter cvp = CellValuePresenter.FromRecordAndField(xamDataGrid1.Records[0] as DataRecord, xamDataGrid1.FieldLayouts[0].Fields[0]) as CellValuePresenter;
MessageBox.Show(cvp.Field.CellHeightResolved.ToString());
DataRecordPresenter drp = DataRecordPresenter.FromRecord(xamDataGrid1.Records[0]) as DataRecordPresenter;
MessageBox.Show(drp.ActualHeight.ToString());
}