Xceed.Silverlight.DataGrid.v2.0 Assembly > Xceed.Silverlight.DataGrid Namespace > DataGridControl Class : SelectedRanges Property |
'Declaration Public ReadOnly Property SelectedRanges As IList(Of SelectionRange)
'Usage Dim instance As DataGridControl Dim value As IList(Of SelectionRange) value = instance.SelectedRanges
public IList<SelectionRange> SelectedRanges {get;}
Dim range As New SelectionRange( New SortDescription() { New SortDescription( "ShipVia", ListSortDirection.Ascending ), New SortDescription( "OrderDate", ListSortDirection.Ascending )}, Nothing, Nothing ) range.StartRangeInfos.Add( "ShipVia", 2 ) range.StartRangeInfos.Add( "OrderDate", New DateTime( 2006, 01, 01 ) ) range.EndRangeInfos.Add( "ShipVia", 2 ) range.EndRangeInfos.Add( "OrderDate", New DateTime( 2006, 12, 31 ) ) Me.sldgDataGridControl.SelectedRanges.Clear() Me.sldgDataGridControl.SelectedRanges.Add( range )
SelectionRange range = new SelectionRange( new SortDescription[] { new SortDescription( "ShipVia", ListSortDirection.Ascending ), new SortDescription( "OrderDate", ListSortDirection.Ascending )}, null, null ); range.StartRangeInfos.Add( "ShipVia", 2 ); range.StartRangeInfos.Add( "OrderDate", new DateTime( 2006, 01, 01 ) ); range.EndRangeInfos.Add( "ShipVia", 2 ); range.EndRangeInfos.Add( "OrderDate", new DateTime( 2006, 12, 31 ) ); this.sldgDataGridControl.SelectedRanges.Clear(); this.sldgDataGridControl.SelectedRanges.Add( range );
Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family