void LoadLogData(decimal queueId) { //DBLogData objDBLogData = new DBLogData(); //objDBLogData.TrackId = 100; //ObservableCollection<DBLogData> newCol = new ObservableCollection<DBLogData>(); //newCol.Add(objDBLogData); //this.Dispatcher.BeginInvoke(new InvokeDelegate(new Action(() => //{ // // data=newCol; // bjGeneralDba.GetDBLogData(queueId); //}))); dbLogGrid.Dispatcher.BeginInvoke(new InvokeDelegate(new Action(() => { dbLogGrid.ItemsSource = objGeneralDba.GetDBLogData(queueId); }))); }