Xceed DataGrid for Silverlight Documentation
SelectionType Property
Example 


Gets or sets a value indicating whether the selection range is selecting or unselecting items.
Syntax
'Declaration
 
Public Property SelectionType As SelectionType
'Usage
 
Dim instance As SelectionRange
Dim value As SelectionType
 
instance.SelectionType = value
 
value = instance.SelectionType
public SelectionType SelectionType {get; set;}

Property Value

Selection if the selection range is selecting items; Unselection if the items are being unselected. By default, Selection.
Example
For more information and examples on selecting data, refer to the Selecting Data topic.
Dim range As New SelectionRange( New SortDescription() { New SortDescription( "ShipCountry", ListSortDirection.Ascending ) }, Nothing, Nothing ) 

range.SelectionType = SelectionType.Unselection
range.StartRangeInfos.Add( "ShipCountry", "Canada" )
range.EndRangeInfos.Add( "ShipCountry", "Canada" )

sldgDataGridControl.SelectedRanges.Add( range )
SelectionRange range = new SelectionRange( new SortDescription[] { new SortDescription( "ShipCountry", ListSortDirection.Ascending ) }, null, null );

range.SelectionType = SelectionType.Unselection;
range.StartRangeInfos.Add( "ShipCountry", "Canada" );
range.EndRangeInfos.Add( "ShipCountry", "Canada" );

sldgDataGridControl.SelectedRanges.Add( range );
Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

SelectionRange Class
SelectionRange Members

Send Feedback