I can not do much to allow populated data gradients to run on runtime (when the user clicks the column headers ) Where the XML query is a LINQ datasource, through a binding source.
Dynamic query reader = Query from query _ where ((0 - Q.Qualifier) / cmbTSStakeValue.Text) & lt; = 0.1 _ Order by Q.Qualifier Descending _ Select QDIM BS as the new binding source B. DataSource = Choir Reader DGFindMach.Data Source = BS
Some properties of datagrids are: < / P>
Nothing String SortProperty Nothing System.ComponentModel.PropertyDescriptor SupportsAdvancedSorting False Boolean SupportsChangeNotification True Boolean SupportsFiltering False Boolean SupportsSearching False Boolean SupportsSorting False Boolean
There is a simple solution which By clicking on a column header will allow you to be able to sort these values?
Thank you!
Some things you need to support the sorting functionality of the results of the LINQ query. This is usually done by obtaining a class from the bidding list and by implementing the core functionality in the derivative class.
There are several examples of implementation of which to choose from and this is the perfect thing for implementing it on MSDN.
Once you do this you do all this In order to keep your results and use it as your data source and grid should have permission to use those columns to sort out.
have been applied // I know that you have asked the question in VB.Net but I do not know that paragraph well public category SortableBindingList & lt; T & gt; : Baiding list & lt; T & gt; {// Override Required Sorting Core Methods} SortableBindingList & lt; String & gt; List = new sort binding list & lt; String & gt; (Queryor.Olist ()); // Use list as your data source now
Comments
Post a Comment