Hi,
I have a report containing several textboxes in my header section all bound to a sqldatasource.
In of them I need to modify the value from a delimited string (item1;item2;item3 ...) to a string with newlines at each ;
item1
item2
item3
My textbox is bound to Fields.MyDataField
I have added an event handler
In debug mode I can see all my data field values in the dataObject EXCEPT from the one I need to modify??? This one is null. BUT if I let the report render I can see the values fine.
Apart from this strange behavior, assuming the data is there, how do I rebind my textbox showing my modified string?
Thanks,
Per
I have a report containing several textboxes in my header section all bound to a sqldatasource.
In of them I need to modify the value from a delimited string (item1;item2;item3 ...) to a string with newlines at each ;
item1
item2
item3
My textbox is bound to Fields.MyDataField
I have added an event handler
private void textBox4_ItemDataBinding(object sender, EventArgs e)
{
Telerik.Reporting.Processing.TextBox txt = (Telerik.Reporting.Processing.TextBox)sender;
Telerik.Reporting.Processing.IDataObject dataObject = (Telerik.Reporting.Processing.IDataObject)txt.DataObject;
_myDataMember = (string)dataObject["MyDataField"];
if (_myDataMember != null)
StringToList();
//Here I need to rebind textbox to the modified string
}
In debug mode I can see all my data field values in the dataObject EXCEPT from the one I need to modify??? This one is null. BUT if I let the report render I can see the values fine.
Apart from this strange behavior, assuming the data is there, how do I rebind my textbox showing my modified string?
Thanks,
Per