Ok guys just to share with you if someone is trying to do this. (We absolutly need this)
in the CurrentRowChangedEvent just do this
in the CurrentRowChangedEvent just do this
int idxcur = Int32.MinValue;
int idxold = Int32.MinValue;
if (e.OldRow != null)
idxold = grdSearchResults.Rows.IndexOf(e.OldRow);
if (e.CurrentRow != null)
idxcur = grdSearchResults.Rows.IndexOf(e.CurrentRow);
//last row when tab is pressed so create a new row
if ((idxcur==grdSearchResults.Rows.Count-1 && idxold==Int32.MinValue) || idxcur == idxold)
AddMeANewLine();
This works for me.
If anyone knows how to select the first cell (place it in edit mode) let me know.
hope this help