I need to access the contents of my radgrid during the databound event.
I had some code which I found online that appeared to work great:
This all worked just dandy until I set the Status field as a ReadOnly field (which it needs to be, since people shouldn't be editing it, it is programmatically set.
Once I changed the status to ReadOnly, it "disappeared" from the extracted values.
Can someone explain why?
I then noticed, when stepping thru the code, that *all* of the "read only" fields in the grid did not appear in the extracted values.
How does one extract all the values from the row, regardless if they are readonly or not?
I had some code which I found online that appeared to work great:
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
Hashtable values = new Hashtable();
item.ExtractValues(values);
switch (item["Status"].ToString())
{
case "Status 1":
...etc
This all worked just dandy until I set the Status field as a ReadOnly field (which it needs to be, since people shouldn't be editing it, it is programmatically set.
Once I changed the status to ReadOnly, it "disappeared" from the extracted values.
Can someone explain why?
I then noticed, when stepping thru the code, that *all* of the "read only" fields in the grid did not appear in the extracted values.
How does one extract all the values from the row, regardless if they are readonly or not?