I do not have an NUnit test. I am using just TestStack White. I am using the following code to grab the window:
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @"C:\Projects\Program location"
Application application = Application.Launch(startInfo);
Window window = application.GetWindow(SearchCriteria.ByText("App Name"),
TestStack.White.Factory.InitializeOption.WithCache);
Then, on my application's (not the testing app but actual app) solution, I used the variable name for the control, the datagridview, which is "pointsKryptonDataGridView" and so that's the name I use for this piece of code in my testing solution:
var pointsKryptonDataGridViewControl = window.Get(SearchCriteria.ByAutomationId("pointsKryptonDataGridView"));
var testTable = window.Get<Table>(SearchCriteria.ByAutomationId("pointsKryptonDataGridView")).AutomationElement;
In your response "and way of configuring TestStack White automation utility with GridControl application" that is basically what I am trying to figure out. Now I am using the KryptonDataGridView from v4.0.30319. If that helps. I am unable to inspect this with Inspect or Spy++. So I need to know how to automate testing this gridview without using Coded UI.