colTxt.Filter = new ColumnFilterData(GridKnownFunction.StartsWith);
Now when i enter some text in the filter area the filter does not occur and when i erase the filter string the grid throws an execption stating that the object is not defined (Null)...
Could you put me on your payrole please :)
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