Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146120 | Jul 21,2019 02:05 PM UTC | Aug 5,2019 04:53 AM UTC | WPF | 3 |
![]() |
Tags: SfDataGrid |
private SfDataGrid dataGrid;
public SfDataGrid DataGrid
{
get { return dataGrid; }
set { dataGrid = value; }
}
public ViewModel()
{
orderCollection = new ObservableCollection<OrderInfo>();
OrderInfoCollection = GenerateOrders1();
Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle,
new Action(() =>
{
DataGrid = Application.Current.MainWindow.FindName("grid") as SfDataGrid;
DataGrid.AddNewRowInitiating += DataGrid_AddNewRowInitiating;
}));
}
private void DataGrid_AddNewRowInitiating(object sender, AddNewRowInitiatingEventArgs e)
{
//To Do
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.