datagridview1.CurrentCell = datagridview1[colindex, rowindex];

Above will set focus on the particular cell. And what do you mean by
"cursor"? if it means the "dotted focus rectangle" then use the same
statement. If it means that Cell should be in edit mode then execute
the following line after the above line,

datagridview1.BeginEdit(true);

where,

true = Select All the previously written text
false = don't select


On Nov 30, 4:40 pm, "yashodabest v" <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> Do u know a way for the following.
> How to give focus to a particular cell in a datagridview in C#?
> How to display the cursor in a particular cell in a datagridview in C#?
>
> Thanks

Reply via email to