Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying Error Icon in GridView
Message
 
To
01/09/2010 10:19:04
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01479572
Message ID:
01479621
Views:
31
Frank,

I believe you will need to set the MM bindiing properties on the EditItemTemplate textbox, namely, BindingSource=, BindingSourceMember=. You might also need to set the BindingType=None although this might not be needed.

HTH
>Hi,
>
>I cannot get an error icon to display when a business rule fails and is associated with a column in a grid view. The GridView column is defined like this:
>
>
                                    < ItemTemplate>
>                                        < mm:mmLabel ID="lblSumAssured" runat="server" AccessLevel="Full" BindingProperty="Text"
>                                            ControlID="00000000-0000-0000-0000-000000000000" IsPostBack="False" SecuritySetup="True"
>                                            Text='< %# Bind("SumAssured") % >'></mm:mmLabel>
>                                    < /ItemTemplate>
>                                    < EditItemTemplate>
>                                        < mm:mmTextBox ID="txtRiderSumAssured" runat="server" Width="100%" Text='< %# Bind("SumAssured") % >'
>                                            AutoPostBack="true" OnTextChanged="txtRiderSumAssured_TextChanged"></mm:mmTextBox><br />
>                                    < /EditItemTemplate>
>
>
>My rule has this in it:
>
>
this.AddErrorProviderBrokenRule("SumAssured", message);
>
>The rule fails, yet no icon shows up in the grid view.
>
>How does one achieve this?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform