This is a migrated thread and some comments may be shown as answers.

Header Context Menu

2 Answers 47 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Joe Bohen
Top achievements
Rank 1
Joe Bohen asked on 31 Mar 2017, 01:25 PM

There is an error in the code in the vb example in the linq expression the intellisense reports a missing closing bracket ')' see attached image.  do you have a fix for this.

Regards

Joe

 

Dim sd As ColumnSortDescriptor = (From d In grid.SortDescriptors.OfType(Of ColumnSortDescriptor)() Where Object.Equals(d.Column, column)d).FirstOrDefault()

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 04 Apr 2017, 01:23 PM
Hello Joe,

Here is the correct snippet you should use:

Dim sd As ColumnSortDescriptor = (
    From d In grid.SortDescriptors.OfType(Of ColumnSortDescriptor)()
    Where Object.Equals(d.Column, column)
    Select d).FirstOrDefault()

Please let me know if this solves your issue.

Regards,
Dilyan Traykov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
Joe Bohen
Top achievements
Rank 1
answered on 04 Apr 2017, 01:28 PM

Hi Diylan,

Thanks for the snippet.

 

Regards,

Joe

Tags
GridView
Asked by
Joe Bohen
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Joe Bohen
Top achievements
Rank 1
Share this question
or