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

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

    Hi,

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

    The code is:

    Xceed.Wpf.DataGrid.

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

    if (row != null)

    {

         Grid.NavigationBehavior =

    NavigationBehavior.None;

         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.

    Regards,

    Ramana 

     

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

    Xceed Support
    Member
    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.