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

Edit popUp Form through non grid button

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 20 May 2013, 05:49 AM
 Hello,

I want to Edit popup form through non radgrid button as shown in Image
any suggestion.

Regards
Amit

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 May 2013, 06:58 AM
Hi Amit,

Please try this code to edit through non rad grid button.
Set the onclick event of the LinkButton.

ASPX:
<asp:LinkButton ID="LinkButton1" runat="server" onclick="onclick">Edit</asp:LinkButton>

C#:
protected void onclick(object sender, EventArgs e)
   {
       foreach (GridDataItem data in RadGrid1.SelectedItems) // Accessing the selected row
       {
           data.Edit = true;                          
           RadGrid1.Rebind();
       }
   }

Thanks
Shinu
Tags
Grid
Asked by
Amit
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or