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

Need GridBoundColumn values in New Record Row

1 Answer 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sukhbinder
Top achievements
Rank 1
Sukhbinder asked on 23 Jun 2012, 07:05 AM

Hi Team,

I need to get the GridBoundColumn values into the new record row when we click the Add Record button.

I am able to find the previous values of lables under GridTemplateColumn but above mention is not clear.

Please let me know how it could be handled.

Regards

SS Bhogal

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Jun 2012, 04:43 AM
Hello Sukhbinder,

Try the following code to access the newly inserted values.
C#:
protected void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e)
{
    GridEditFormInsertItem item = (GridEditFormInsertItem)e.Item;
    TextBox txt = (TextBox)item["UniqueName"].Controls[0];
    string value = txt.Text;
}

Thanks,
Shinu.
Tags
General Discussions
Asked by
Sukhbinder
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or