I have a RadGrid on a page that the auto-insert, update and delete just is not going to work for me based on multiple tables that need to be touched as a result of a single event against the LinqDataSource.
I have been trying for the better part of the afternoon to handle this programatically.
The handler has been created and I can get into it, but in exploring the object, I cannot seem to retrieve the values that I am inserting when clicking on it.
protected void rgLocations_InsertCommand(object source, GridCommandEventArgs e)
{
GridEditableItem item = (GridEditableItem)e.Item;
}
I am trying to retrieve a string from the textbox on the auto-generated insert form and cannot seem to find the value anywhere.
How can I get the values from these forms?
I am looking for a way to take a data and reformat based on the condition.
how do I use the condition in GridBoundColumn or GridCalculatedColumn?
ex.
if boundColumn.DataField.text > 1 then
DataField.text = "> {0}"
else
DataField.text = "< {0}"
end if
Thanks
|