https://bugzilla.novell.com/show_bug.cgi?id=343965
Summary: DataGridView: allows edit cells without setter
Product: Mono: Class Libraries
Version: 1.2.6
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Depends on: 343964
Found By: ---
To reproduce, run the code, edit cell.
Observed:
Cell is editable
Expeced:
Grid cells should be read only.
Environment:
1.2.6 preview 2
NET 2 profile
System.Drawing & Configuration from Nov 24, 2007 monocharge
Windows XP
VCSE 2008
Code:
using System;
using System.Windows.Forms;
using System.Collections.Generic;
public class Test
{
static void Main()
{
Application.Run(new Form1());
}
}
class Form1 : Form
{
public Form1()
{
Controls.Add(new Grid());
}
}
class Grid : DataGridView
{
public Grid()
{
BindingSource BindingSource = new BindingSource();
List<cust> l = new List<cust>();
l.Add(new cust());
BindingSource.DataSource = l;
DataSource = BindingSource;
}
}
class cust
{
public string Name
{
get { return "test"; }
}
}
--
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs