Hi all,
I have a problem with my radGrid. My code below:
======ASPX code=====
<telerik:RadGrid ID="rgData" runat="server" AutoGenerateColumns="false"
onupdatecommand="rgData_UpdateCommand1">
<MasterTableView DataKeyNames="ID" >
<PagerStyle Mode="NextPrevAndNumeric" />
<Columns>
<telerik:GridBoundColumn DataField="Name"
UniqueName="clName"
HeaderText="Name" >
</telerik:GridBoundColumn>
</Columns>
</telerik:RadGrid>
=====C# code========
protected void rgData_UpdateCommand1(object sender, GridCommandEventArgs e)
{
GridEditableItem item = (GridEditableItem)e.Item;
string value = (item["clName"].Controls[0] as TextBox).Text;
}
===================
When I debug, I only get value of column Name, not the value I set in edit mode.
this is my Grid: http://i1068.photobucket.com/albums/u450/bl4ir121/Error_RadGrid.jpg
I try get Kevin value but I only get John value.
Please help me, It's very important.
Thank all.
I have a problem with my radGrid. My code below:
======ASPX code=====
<telerik:RadGrid ID="rgData" runat="server" AutoGenerateColumns="false"
onupdatecommand="rgData_UpdateCommand1">
<MasterTableView DataKeyNames="ID" >
<PagerStyle Mode="NextPrevAndNumeric" />
<Columns>
<telerik:GridBoundColumn DataField="Name"
UniqueName="clName"
HeaderText="Name" >
</telerik:GridBoundColumn>
</Columns>
</telerik:RadGrid>
=====C# code========
protected void rgData_UpdateCommand1(object sender, GridCommandEventArgs e)
{
GridEditableItem item = (GridEditableItem)e.Item;
string value = (item["clName"].Controls[0] as TextBox).Text;
}
===================
When I debug, I only get value of column Name, not the value I set in edit mode.
this is my Grid: http://i1068.photobucket.com/albums/u450/bl4ir121/Error_RadGrid.jpg
I try get Kevin value but I only get John value.
Please help me, It's very important.
Thank all.