We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDataControl Row Enter event

Thread ID:





104659 Aug 7,2012 02:44 AM UTC Aug 13,2012 02:37 PM UTC WPF 1
Tags: GridControl
Asked On August 7, 2012 02:44 AM UTC


when down or up key from arrow keys on griddatacontrol pressed selected row changes. i want to raise an event to catch current row index.waht event do taht and how? such as e.rowindex in gridcontrol or datagridview_rowenter.


Rajasekar G [Syncfusion]
Replied On August 13, 2012 02:37 PM UTC

Hi Zagalo,


Thank you for using Syncfusion products.


We have analyzed your query and you can achieve your requirement by handling the CurrentCellMoved event in GridDataControl.


Code Snippet[C#]:



this.DataGrid.CurrentCellMoved += new GridCurrentCellMovedEventHandler(DataGrid_CurrentCellMoved);


void DataGrid_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs args)
    if (Keyboard.IsKeyDown(Key.Up) || Keyboard.IsKeyDown(Key.Down))
        textdisplay.Text = "RowIndex:" + this.DataGrid.Model.Grid.CurrentCell.RowIndex.ToString();



Sample Location: GridDataControlSample.zip


Please let us know if you have any questions.



Raja sekar.G


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon