Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying Error Icon in GridView
Message
From
01/09/2010 10:19:04
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Displaying Error Icon in GridView
Miscellaneous
Thread ID:
01479572
Message ID:
01479572
Views:
83
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?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Next
Reply
Map
View

Click here to load this message in the networking platform