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

HELP GRID NOT UPDATING

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 22 Jul 2008, 05:18 PM
i have a relatively simple grid with a half dozen fields and an edit button.  When the edit button is click the grid goes into edit mode as expected.  When I click the update button I cannot get to the "updated" values.  I have tried several ways to get to the updated data and they always return the original value.

HELP!!!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Jul 2008, 05:32 AM
Hi James,

Try the following code snippet in the UpdateCommand event to access the Updated text .

CS:
protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e) 
    { 
        GridEditableItem edititem = (GridEditableItem)e.Item; 
        TextBox txtbx = (TextBox)edititem["columnUniqueName"].Controls[0]; 
        string strtxt = txtbx.Text; 
    } 


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