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

[Solved] Show the Grid edit form without grid rows

1 Answer 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rita15
Top achievements
Rank 1
Rita15 asked on 11 Mar 2010, 08:59 PM
Hi,

  Is it possible to hide the grid rows when the edit form is shown to update the grid rows without using the popup style?
When the edit form opens up, the edit form is displayed just below the edit grid row but with all other grid rows. I would like to display only the edit form without showing other grid rows.

Any ideas?

Thanks,
Rita 


1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 12 Mar 2010, 06:29 AM
Hello Rita,

You can set the visibility property of GridDataItem in PreRender event as shown below.

C#:
protected void RadGrid2_PreRender(object sender, EventArgs e) 
     if (RadGrid2.EditIndexes.Count>0) 
     {                
           foreach (GridDataItem item in RadGrid2.MasterTableView.Items) 
           { 
               item.Visible = false
           } 
     } 


Regards
Shinu


Tags
Grid
Asked by
Rita15
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or