Xceed DataGrid for Silverlight Documentation
FromItem Method
Example 


An object representing the item from which to start the selection range.
Specifies the item from which to start the selection range.
Syntax
'Declaration
 
Public Sub FromItem( _
   ByVal item As Object _
) 
'Usage
 
Dim instance As SelectionRange.StartRangeDictionary
Dim item As Object
 
instance.FromItem(item)
public void FromItem( 
   object item
)

Parameters

item
An object representing the item from which to start the selection range.
Remarks

When specifying a start and end item as the selection range, the items will be selected according to their position in the data source and not how they are displayed on screen. This means that all items between the start and end items will be selected, regardless of where the start and end items are located visually.

Example
For more information and examples on selecting data, refer to the Selecting Data topic.
Dim range As New SelectionRange()

range.StartRangeInfos.FromItem( Me.People[ 5 ] )
range.EndRangeInfos.ToItem( Me.People[ 10 ] )

sldgDataGridControl.SelectedRanges.Add( range )
SelectionRange range = new SelectionRange();

range.StartRangeInfos.FromItem( this.People[ 5 ] );
range.EndRangeInfos.ToItem( this.People[ 10 ] ); 

sldgDataGridControl.SelectedRanges.Add( range );
Requirements

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

See Also

Reference

SelectionRange.StartRangeDictionary Class
SelectionRange.StartRangeDictionary Members

Manipulating Data

Selecting Data

Send Feedback