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

[Solved] Datasource Binding On EditMode in Rad Grid

3 Answers 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Haseeb
Top achievements
Rank 1
Haseeb asked on 19 Mar 2013, 02:36 PM
Hi,
    can any one tell me , How can i rebind grid when i click on Edit Button in Rad grid?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Mar 2013, 05:02 AM
HI,

Try the following.
c#:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
        if (e.CommandName == RadGrid.EditCommandName)
        {
            RadGrid1.Rebind();
        }
}

Thanks,
Shinu
0
Haseeb
Top achievements
Rank 1
answered on 20 Mar 2013, 09:53 PM
Hi,
     I want That  When user hits Update Button in inline Edit mode to update Record, The Edit box should collapse infact the Grid Reload.
Thanks
0
Shinu
Top achievements
Rank 2
answered on 21 Mar 2013, 04:40 AM
Hi,

I suppose you want to close edit form on UpdateButton click. Here is the sample code.
C#:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
         if (e.CommandName == RadGrid.UpdateCommandName)
        {
            RadGrid1.MasterTableView.ClearEditItems(); 
        
}

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