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.
Unfortunately, activation email could not send to your email. Please try again.

GridDataControl Row Enter event

Thread ID:





104659 Aug 6,2012 10:44 PM Aug 13,2012 10:37 AM WPF 1
Tags: GridControl
Asked On August 6, 2012 10:44 PM


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 10:37 AM

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.

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.