Does XamGrid has SelectedItem property like Silverlight DataGrid.
For example if i have a DataGrid named myDataGrid, then when I want to get a selected row from Silverlight DataGrid all have to do is call SelectedItem property then cast it to a data object
(MyObject) selectedRow = (myObject) mtDataGrid.SelectedItem.
Thanks
Hi,
The xamGrid doesn't have a SelectedItem property.
It has an ActiveCell property, which you can get your data item by using : grid.ActiveCell.Row.Data
And it also has SelectedRows/SelectedCells properties. Which are used based of the type of Selection you're using:
grid.SelectionSettings.SelectedCells
grid.SelectionSettings.SelectedRows
-SteveZ
HI,
Here is a help link to the XamGrid's SelectionSetting Class Members http://help.infragistics.com/NetAdvantage/Silverlight/2010.3/CLR4.0/?page=InfragisticsSL4.Controls.Grids.XamGrid.v10.3~Infragistics.Controls.Grids.SelectionSettings_members.html
Here is a help link to the SelectedCells and SelectedRows properties off of the selectionSetting Class
http://help.infragistics.com/NetAdvantage/Silverlight/2010.3/CLR4.0/?page=InfragisticsSL4.Controls.Grids.XamGrid.v10.3~Infragistics.Controls.Grids.SelectionSettings~SelectedCells.html
http://help.infragistics.com/NetAdvantage/Silverlight/2010.3/CLR4.0/?page=InfragisticsSL4.Controls.Grids.XamGrid.v10.3~Infragistics.Controls.Grids.SelectionSettings~SelectedRows.html
Sincerely, Matt Developer Support Engineer