[Mono-bugs] [Bug 595567] New: GridView Header/Footer compatibility issue between Mono and MS .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Apr 10 19:34:05 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=595567

http://bugzilla.novell.com/show_bug.cgi?id=595567#c0


           Summary: GridView Header/Footer compatibility issue between
                    Mono and MS .NET
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: sergey.hakobyan at gaiaware.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=353601)
 --> (http://bugzilla.novell.com/attachment.cgi?id=353601)
Testcase which shows the different behaviour between Mono and MS.NET

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US)
AppleWebKit/533.3 (KHTML, like Gecko) Chrome/5.0.360.0 Safari/533.3

Mono sets the Visible property of the Header/Footer row according to
ShowHeader/ShowFooter too late in the Page lifecycle, specifically during
PrepareControlHeirarchy() call, which is called during GridView rendering.

So Header/Footer rows always have Visible=True before the GridView rendering.

Thus, any code which relies on the Visible property of those rows works on
MS.NET, but fails on Mono.

Original discussion can be found at
http://forum.gaiaware.net/yaf_postsm1935_GridView-and-Mono.aspx .

Reproducible: Always

Steps to Reproduce:
1. Add GridView to the Page markup.
2. During Page_Load DataBind GridView.
3. Check the Visible property of the Header/Footer row.
Actual Results:  
Visible property is always true before GridView rendering, even when
ShowHeader/ShowFooter are false.

Expected Results:  
The same behavior is expected as with MS.NET: when accessed, the Visible
property should have the value of ShowHeader/ShowFooter property.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list