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

Deleting the editform row (which is in edit mode) at run time

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Geetha
Top achievements
Rank 1
Geetha asked on 08 Aug 2012, 12:29 PM
Hi,

          I have used EditFormSettings in my RadGrid. I am also having two buttons one is New and Edit too. I have checkbox and a column (Image Name) in grid. So when click new button, it is creating a row for insertion. At the same time, without entering any information in edit mode, I am clicking the check box, at this time I wanted to remove the created row (which is in insert mode). How to do this? Is it possible to do?

The following statement is not working..

MyRadGrid.MasterTableView.ClearEditItems();


Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Aug 2012, 05:15 AM
Hi,

I suppose  you want to close the insert form on clicking any CheckBox. I am not sure where you have placed the CheckBox. You can attach the CheckChanged event and close the insert Form as shown below.

C#:
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{    
        MyImage.MasterTableView.IsItemInserted = false;
        MyImage.Rebind();            
}

Regards,
Princy.
Tags
Grid
Asked by
Geetha
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or