예제 #1
0
 private void RegGridView_RowDoubleClick(object sender, DevExpress.Xpf.Grid.RowDoubleClickEventArgs e)
 {
     if (e.HitInfo.InRow)
     {
         FrameworkElement el  = RegGridView.GetRowElementByRowHandle(e.HitInfo.RowHandle);
         Registration     reg = ((el.DataContext as DevExpress.Xpf.Grid.RowData).Row as Registration);
         ViewModel.OpenRegistration(reg);
     }
 }
예제 #2
0
 void RegGrid_Loaded(object sender, RoutedEventArgs e)
 {
     RegGridView.BestFitColumns();
 }