Hello Telerik Team,
I Converted code VB to C#. In VB it is alreday tasted & worked perfectly but in C# Rebind is not working properly.
While loading window am setting like below:
rgvSet.ItemsSource = DataModule.objSets;
rgvOrders.ItemsSource = DataModule.objOrderList;
rgvTour.ItemsSource = DataModule.objTourList;
rgvTruck.ItemsSource = (from p in DataModule.objTruckList where p.Status == DataModule.Cons_Status_Available select p).ToList<clsTruck>();
rgvTrailer.ItemsSource = (from p in DataModule.objTrailerList where p.Status == DataModule.Cons_Status_Available select p).ToList<clsTrailer>();
rgvDriver.ItemsSource = (from p in DataModule.objDriverList where p.Status == DataModule.Cons_Status_Available select p).ToList<clsDriver>();
"rgv... " are RadgridView and all List are ObservableCollection. After doing such operation adding/removing/updating in collection am rebinding appropriate grid. Grid which having itemsource as LINQ query will not Rebind but Grid which have collection as Itemsource will rebind correctly.
What could be a reason? any idea?
Thanks...!!!
I Converted code VB to C#. In VB it is alreday tasted & worked perfectly but in C# Rebind is not working properly.
While loading window am setting like below:
rgvSet.ItemsSource = DataModule.objSets;
rgvOrders.ItemsSource = DataModule.objOrderList;
rgvTour.ItemsSource = DataModule.objTourList;
rgvTruck.ItemsSource = (from p in DataModule.objTruckList where p.Status == DataModule.Cons_Status_Available select p).ToList<clsTruck>();
rgvTrailer.ItemsSource = (from p in DataModule.objTrailerList where p.Status == DataModule.Cons_Status_Available select p).ToList<clsTrailer>();
rgvDriver.ItemsSource = (from p in DataModule.objDriverList where p.Status == DataModule.Cons_Status_Available select p).ToList<clsDriver>();
"rgv... " are RadgridView and all List are ObservableCollection. After doing such operation adding/removing/updating in collection am rebinding appropriate grid. Grid which having itemsource as LINQ query will not Rebind but Grid which have collection as Itemsource will rebind correctly.
What could be a reason? any idea?
Thanks...!!!