sfDataGrid.TableControl.BeginInvoke(New Action(Function() AnonymousMethod1(e)))
Private Function AnonymousMethod1(ByVal e As System.Collections.Specialized.NotifyCollectionChangedEventArgs) As Object
Dim columnIndex = sfDataGrid.TableControl.ResolveToScrollColumnIndex(sfDataGrid.Columns.IndexOf(sfDataGrid.Columns("OrderID")))
Dim rowIndex = sfDataGrid.GetAddNewRowIndex()
sfDataGrid.MoveToCurrentCell(New RowColumnIndex(rowIndex, columnIndex))
sfDataGrid.CurrentCell.BeginEdit()
Return Nothing
End Function |
This looks great, I'd like to see the same in C# ?
This indeed helps me out. Remarkably my own OLEDB-based project doesn't trigger any "sfDataGrid1.View.Records.CollectionChanged"
event from AddNewRow activities, so I had to make some changes and variations in order to
make things work for me.
Looking good so far. Thanks a lot !