Many times, without ActiveCell(means ActiveCell=null), app will have error. So if data loaded by wcf ria service, how to make XamGrid always have the ActiveCell, for example, as Rows[0].Cell[0] by default without extra code?
I set itemsource for XamGrid:
XamGrid1.ItemsSource = new ObservableCollection<LoadHR_LLNV_Result>(from p in _LLNVContext.LoadHR_LLNV_Results select new LoadHR_LLNV_Result() { ID= p.ID, NAME= p.NAME });
how to set ActiveItem?
Thanks!
HI,
Xamgrid1.ActiveItem = ((DataRecord)XamGrid1.Records).DataIem;
Sincerely, Matt Developer Support Engineer