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

[Solved] Read only mode after insert

2 Answers 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 20 Oct 2009, 09:10 PM
Hi All, is there some way i can explicitly tell the grid to return to normal read only mode after an insert?

 

2 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 20 Oct 2009, 09:54 PM
You could try the following piece of code:
 
protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)  
    {  
        if (boolean statement)  
        {   
            RadGrid1.Enabled = false
        }  
  
    }  

0
Princy
Top achievements
Rank 2
answered on 21 Oct 2009, 04:03 AM
Hello Rich,

I suppose you want to close your insert form explicitly after an insert operation. If that is the case then you will have to try the following code:
c#:
protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)   
    {           
            // after insert operation 
 
            RadGrid1.MasterTableView.IsItemInserted = false;                        
    } 

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