[Mono-bugs] [Bug 444348] New: DataGridView Cell BackColor Tansparency error

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 12 14:44:09 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=444348


           Summary: DataGridView Cell BackColor Tansparency error
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: mono at wansco.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User


Description of Problem:
setting a datagridview's cell style backcolor to transparent throws an
exception

Steps to reproduce the problem:
1. dataGridViewCellStyle7.SelectionBackColor =
System.Drawing.Color.Transparent;



Actual Results:

System.ArgumentException: BackColor can't have alpha transparency component.at
System.Windows.Forms.DataGridViewCellStyle.set_SelectionBackColor (Color value)
[0x00000] at ...



Expected Results:
no exception


How often does this happen? 
every time


Additional Information:
it would be nice if it didn't throw an exception. my application is developed
in visualstudio and these settings are generated via the InitializeComponent()
code generator.



workaround:
i can set the transparency manually in the process (after
InitializeComponent()) and catch the exception.


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


More information about the mono-bugs mailing list