Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Placing cursor in datagridview cell

Status
Not open for further replies.

desaivar

Programmer
Jul 6, 2009
12
US
Hi there,

I have second column as datagridviewTextBoxColumn column in the datagridview, after opening dot net form runtime, in first cell of this column , I am populating ‘-‘ character at third position with remaining everything blank. Requirement is cursor should be at first position in this cell.

But now what is happening is, as my second column’s first cell should have cursor after opening form, we are sending tab key from first column to second column runtime with SendKeys.Send("{TAB}"), as result cursor is located after ‘-‘ which is not requirement , cursor should be at first position in cell.

How can we achieve this? I have given so many tries but still not able to sort it out, now it is urgent, please help me.

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top