Hi,
Im trying to make a radgrid work with edit mode in a webpart for MOSS 2007.
All the events fire as they should BUT I cant get the edited values in the event.
The controls property on the edit cells has a count = 0.
It works fine when I use the control in a normal aspx page.
The code is:
Im trying to make a radgrid work with edit mode in a webpart for MOSS 2007.
All the events fire as they should BUT I cant get the edited values in the event.
The controls property on the edit cells has a count = 0.
It works fine when I use the control in a normal aspx page.
The code is:
protected void radGrid_ItemCommand(object source, GridCommandEventArgs e)
{
switch (e.CommandName)
{
case
"Update":
{
GridEditFormItem gridInsert = (GridEditFormItem)e.Item;
string pNavn = ((TextBox)(gridInsert["Navn"].Controls[0])).Text;
...
The .Controls[0] throw an "index out of range" because the cell holds no controls. The gridInsert["Navn"] does exist.
Please help.