Home Forums WPF controls Xceed DataGrid for WPF How to get Grid.CurrentItem

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #26896 |


    I am unable to get Grid.SelectedItem (or) Grid.CurrentItem , in OnMouseEnterEvent on the GridRow I have wrote Code

    The code is:


    DataRow row = sender as Xceed.Wpf.DataGrid.DataRow;

    if (row != null)


         Grid.NavigationBehavior =


         Grid.CurrentItem = Grid.SelectedItem;// Here Grid.SelectedItem is giving Null



    This code was worked at XceedGrid trial version (1.3….)

    I have installed Licenced version(2.0) , for this version Code is not working

    Grid.SelectedItem is always giving “Null”

    What is the problem with the new version ,Is there any new features was included for this version

    i want get grid.CurrentItem Please help me.




    Imported from legacy forums. Posted by keep (had 828 views)

    Xceed Support
    Post count: 5658

    You can try using GlobalCurrentItem and GlobalSelectedItems or the CurrentItem and SelectedItems property exposed by the DataGridContext class. For example:

    DataGridContext context = DataGridControl.GetDataGridContext( sender );
    System.Data.DataRow row =  context.CurrentItem as System.Data.DataRow;


    Imported from legacy forums. Posted by Jenny [Xceed] (had 1624 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.