I need a little help converting some VB.NET code to C#. I have tried several "code converters" but none of them are giving me back a workable response.
Here's the code:
If Me.OrdersDataGridView.SelectedRows.Count > 0 Then
Dim editForm As New Order(Me.NorthwindDataSet, _
Me.NorthwindDataSet.Orders.Rows.IndexOf_
(CType(CType(Me.OrdersDataGridView.SelectedRows(0)._
DataBoundItem, DataRowView).Row, NorthwindDataSet.OrdersRow)))
editForm.Show()
End If
Any help with this is greatly appreciated!
EDIT: here's a link to the original article I found this in.