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

Retrieve values from "Add new record" form

2 Answers 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 04 Oct 2012, 10:40 AM
Hello,

Ive searched for quite some time now trying to find information on how i get the values from the textboxes in the form when im adding a new record to my grid.

What event do i use to get these values and how do i get them out?

I simply want to save the inserted record to database.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 04 Oct 2012, 10:58 AM
Hi,

You can access the inserted values as shown below.
C#:
protected void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e)
{
     GridEditFormInsertItem item = (GridEditFormInsertItem)e.Item;
     TextBox txt = (TextBox)item["UNiqueName"].Controls[0];
}

Thanks,
Shinu.
0
Robert
Top achievements
Rank 1
answered on 04 Oct 2012, 12:18 PM
Thank you! that was all i needed
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Robert
Top achievements
Rank 1
Share this question
or