This is a migrated thread and some comments may be shown as answers.

Cell BeginEdit()

5 Answers 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Somnath
Top achievements
Rank 1
Somnath asked on 08 Mar 2011, 03:46 PM
HI

When I click a radbutton I have following requirements.....

-- Set BeginEdit to the cell["Name"] of the Row which index is -1 (AddNewRow)

let me know any solution in this case....

Thanks

5 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 08 Mar 2011, 03:59 PM
Hi Somnath,

you can put a "New Row" system row cell into edit mode in the following way

this.radGridView1.MasterView.TableAddNewRow.Cells[1].BeginEdit();

Hope that helps
Richard
0
Somnath
Top achievements
Rank 1
answered on 08 Mar 2011, 04:06 PM
Hello Richard

The code provided by you is not works properly for my case...
can you come with other solution

Thanks
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 08 Mar 2011, 04:10 PM
Hello Somnath,

What is the issue? This code works fine under the latest version of the controls.

You could also do it this way, but this is just a very long way of performing the same as the code I first suggested. 
 
foreach (GridViewSystemRowInfo row in this.radGridView1.MasterView.SystemRows)
{
    if (row is GridViewNewRowInfo)
    {
        row.Cells[1].BeginEdit();
    }
}

Please let me know what version you are using and your issue.
Thanks
Richard
0
Somnath
Top achievements
Rank 1
answered on 08 Mar 2011, 04:24 PM
Hello Richard

I have Q3 2010 version of telerik winControls...

I just want set focus to the cell which is to be edited

0
Richard Slade
Top achievements
Rank 2
answered on 08 Mar 2011, 04:29 PM
Hello Somnath,

this is what my original code does. As you asked, it places a cell in the New Row section into edit mode.
Please see this video which shows the code I gave you in action.

If you are still having issues, please let me know exactly what the problem is that you are experiencing and I'll be glad to help
Thanks
Richard
Tags
GridView
Asked by
Somnath
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Somnath
Top achievements
Rank 1
Share this question
or