also,

dataGridView1[colindex, rowindex].Selected = true;

above statement will only select i.e. don't set the focus to
particular cell.

On Dec 1, 4:17 pm, sallushan <[EMAIL PROTECTED]> wrote:
> 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- Hide quoted text -
>
> - Show quoted text -

Reply via email to