Hi there,
I developed some projects with entity framework up till now - so my skills with this technology (WPF/WinForms) are quiet good. But I'm rather new to ASP.net. In WinForms there are two events for data binding "Parse" and "Format" and in WPF we have custom implemented IValueConverts. But what ways are there in ASP.net (not MVC)?!?
I successfully attached an EntityDataSource to a RadGrid. Inserts/Updates/Deletes are working as expected! But trying to implement some piece of user defined value parsing drives me crazy!
For an example I give you the following column definition:
I developed some projects with entity framework up till now - so my skills with this technology (WPF/WinForms) are quiet good. But I'm rather new to ASP.net. In WinForms there are two events for data binding "Parse" and "Format" and in WPF we have custom implemented IValueConverts. But what ways are there in ASP.net (not MVC)?!?
I successfully attached an EntityDataSource to a RadGrid. Inserts/Updates/Deletes are working as expected! But trying to implement some piece of user defined value parsing drives me crazy!
For an example I give you the following column definition:
<
EditItemTemplate>
<asp:TextBox ID="TextBoxPrice" Text='<%# Bind("Price", "{0:#.00} €") %>' runat="server"></asp:TextBox>
</EditItemTemplate>
As you can see, there is a value from the data source (property 'Price') bound with formating information to an appropriate TextBox control. But when I try to update - of course - the operation fails. The string "10,00 €" could not be parsed as an numeric value. Now I would expect an event wich gives me the instance of the current bound item or a value that I can change - anything to customized changing string "10,00 €" to "10,00" or custom filling values to the object. But I can't find anything related :-S
Am I missing something here???
Best regards,
Oliver