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

[Solved] how to collapse a Grid

1 Answer 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
asfand yar
Top achievements
Rank 1
asfand yar asked on 30 Jan 2010, 12:20 PM
i am using RadGrid
i add a record through Form view i didint hit yet inset button ....
i just want to know how to collaps that form view in that Grid in code behind file
where as i know its default behavior of Form in Grid that after clicking at insert it will implicitly get closed
How to collapse a gird

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Feb 2010, 04:54 AM
Hello Asfand,

In order to collapse/hide the insert form, use the code snippet below.

CS:
 
RadGrid1.MasterTableView.IsItemInserted = false
RadGrid1.MasterTableView.Rebind(); 

To persist the values that you have entered in the form, you can store them as a key value pair with the help of hash table and store this in a session. On expanding the insert form you can set the stored values from the session.

-Shinu.
Tags
Grid
Asked by
asfand yar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or