Hi Paul,
The simplest (and the most reliable I believe) way would be to override the
OnCurrentCellChanged method in a class inherited from the DataGrid and raise
a custom CurrentRowChanged event whenever the user goes to another row (you
can determine that by analyzing the CurrentCell property and maintaining a
temporary variable storing current row number).
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Paul Sampson" <ps******@uecomm.com.au> wrote in message
news:10**************@proxy.uecomm.net.au...
Hello,
The DataGrid.CurrentCellChanged requires too much overhead to determine
when only the row has changed.
Can anyone suggest a way to fire an event when the user selects a
different row in a windows forms datagrid?
Perhaps this can be done by examining the underlying DataTable, but I'm
yet to find a way.
Thanks