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

Grid insert in edit form

1 Answer 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Swapnil
Top achievements
Rank 1
Swapnil asked on 12 Sep 2013, 10:44 AM
Hi,

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 13 Sep 2013, 09:27 AM
Hi Swapnil,

I guess you want to open one form at a time,that is,either edit form or insert form and not both together.Please try the following code snippet.

C#:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.EditCommandName)
    {
        RadGrid1.MasterTableView.IsItemInserted = false; // Close Insert Form
    }
    if (e.CommandName == RadGrid.InitInsertCommandName)
    {
        RadGrid1.MasterTableView.ClearEditItems(); //Close Edit Form
    }
}

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