Hi,
I have two RadGrids. The first grid presents a list of items and with a push of a button selected items are transferred to the second grid (in addition to whatever might already be in the second grid). So on button's Click event (server side) I go through all items in the second grid to see what has already been added. However, the value of GridDataItem.Text is wrong (contains only ):
Does anyone have an idea of what went wrong?
Kind regards,
Andreja
I have two RadGrids. The first grid presents a list of items and with a push of a button selected items are transferred to the second grid (in addition to whatever might already be in the second grid). So on button's Click event (server side) I go through all items in the second grid to see what has already been added. However, the value of GridDataItem.Text is wrong (contains only ):
foreach (GridDataItem dataItem in rgTaskDevice.Items)
{
Device device = new Device();
device.Id =
Convert.ToInt64(dataItem["Id"].Text); // this causes Exception because .Text = " "
//same for all other columns
...
}
Does anyone have an idea of what went wrong?
Kind regards,
Andreja