Unable to access a DatagridView item

Aug 22, 2008 at 5:52 AM
The application I am trying to automate has a datagridview item. I am unable to access the elements within the datagrid since I am unable to find a api within white which can do that.
I tried to do the following
            sendsms.Get<Table>(SearchCriteria.ByText("DataGridView")).Row("1"," Row 0").Click();
            sendsms.Get<Table>(SearchCriteria.ByText("DataGridView")).Row("1"," Row 0").Click();
            sendsms.Get<TextBox>(SearchCriteria.ByText("Editing Control")).Text = "xyz";
            sendsms.Get<TextBox>(SearchCriteria.ByText("Message:")).Text = "Test Message From Harshad";
Now the Row 0 is a cell within the datagrid and need to click it twice before the textbox named "Message" is accessible. Later i need to set the value into the textbox. So the visibility of textbox depends on the user clicking twice on Row 0.

Please let me know what i need to change in the above code.

Aug 22, 2008 at 7:54 AM
Let me simplify the question:
How do we access DataGridViewTextBoxColumn and DataGridViewComboBoxColumn() elements within a Datagrid?
Aug 22, 2008 at 2:22 PM