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

ExtractValues

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 21 Mar 2012, 02:51 PM
gce.Item.OwnerTableView.ExtractValuesFromItem(hash, gce.Item.OwnerTableView.Items[ultimoIndex]);

This code, get the new value wrote on grid. there is another kind of code, to get ALL values on the grid?

Thankz in advance

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Mar 2012, 09:47 AM
Hello Bruno,

You can access the new values in UpdateCommand as shown below.
aspx:
<telerik:GridBoundColumn DataField="FirstName" UniqueName="FirstName"  HeaderText="FirstName">
</telerik:GridBoundColumn>
C#:
protected void RadGrid1_UpdateCommand(object sender, GridCommandEventArgs e)
{
 GridEditFormItem editItem = (GridEditFormItem)e.Item;
 string name = (editItem["FirstName"].Controls[0] as TextBox).Text;
}

Thanks,
Shinu.
Tags
Grid
Asked by
Bruno
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or