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

Close edit form while insert

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sushant
Top achievements
Rank 1
sushant asked on 05 Nov 2008, 09:59 AM
I am displaying records in radgrid from more than one table,I am selecting table by using combobox,my problem is that when I open edit form to insert record and after that when I select another table from combobox edit form remains open,I want to close edit form when I select another table,Please help me

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Nov 2008, 11:28 AM
Hello Sushant,

You can try out the following code snippet to clear of the EditForm in the SelectedIndexChanged event of the combobox:
cs:
protected void RadComboBox1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) 
    { 
        RadGrid1.MasterTableView.ClearEditItems(); 
    } 

Thanks
Princy.
Tags
Grid
Asked by
sushant
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or