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

[Solved] Problem with edit button

2 Answers 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Santos
Top achievements
Rank 1
Santos asked on 26 Mar 2013, 10:23 AM
Hello Friends:

I have a problem with change the editCommandColumn to the butom on the ItemTemplate.
Who can I fire the ColumnEdit when i click in the buttom edit of the ItemTemplate?
And other solution?

Thanks for your information.

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 26 Mar 2013, 10:44 AM
Hi,

You can use FireCommand to invoke Edit commandname as shown below.
C#:
  protected void Button2_Click(object sender, EventArgs e)
{
       RadGrid grid = (this.FindControl("RadGrid1") as RadGrid);
    (grid.MasterTableView.GetItems(GridItemType.EditFormItem)[0] as GridEditableItem).FireCommandEvent(RadGrid.EditCommandName, string.Empty);
 }

Thanks,
Shinu
0
Santos
Top achievements
Rank 1
answered on 26 Mar 2013, 01:12 PM
Ok, this is correct, Thanks

Best regarts!!
Tags
Grid
Asked by
Santos
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Santos
Top achievements
Rank 1
Share this question
or