Bugzilla – Attachment 269430 Details for
Bug 471754
DataGridView: Crash when editing cells
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
Example.
datagridview.cs (text/plain), 2.15 KB, created by
Mario Carrion
on 2009-02-02 23:07:58 UTC
(
hide
)
Description:
Example.
Filename:
MIME Type:
Creator:
Mario Carrion
Created:
2009-02-02 23:07:58 UTC
Size:
2.15 KB
patch
obsolete
>// gmcs -r:System.Windows.Forms,System.Drawing,System datagridview.cs && mono datagridview.exe >using System; >using System.Drawing; >using System.Windows.Forms; > >namespace Example { > public class ExampleForm : Form > { > public ExampleForm () : base() > { > Size = new Size(800, 300); > > DataGridView view = new DataGridView(); > view.Size = new Size(700, 200); > view.Location = new Point(1, 1); > > DataGridViewTextBoxColumn textColumn = new DataGridViewTextBoxColumn(); > textColumn.HeaderText = "text column"; > > DataGridViewButtonColumn buttonColumn = new DataGridViewButtonColumn(); > buttonColumn.HeaderText = "button column"; > > DataGridViewCheckBoxColumn checkboxColumn = new DataGridViewCheckBoxColumn(); > checkboxColumn.HeaderText = "cehckxbo column"; > > DataGridViewLinkColumn linkColumn = new DataGridViewLinkColumn(); > linkColumn.HeaderText = "link column"; > > DataGridViewImageColumn imageColumn = new DataGridViewImageColumn(); > imageColumn.HeaderText = "image column"; > > DataGridViewComboBoxColumn comboBoxColumn = new DataGridViewComboBoxColumn(); > comboBoxColumn.HeaderText = "combobox column"; > comboBoxColumn.Items.AddRange ("1","2","3","4","5","6"); > > view.Columns.Add(textColumn); > view.Columns.Add(buttonColumn); > view.Columns.Add(checkboxColumn); > view.Columns.Add(linkColumn); > view.Columns.Add(imageColumn); > view.Columns.Add(comboBoxColumn); > >// view.AllowUserToAddRows = false; > > DataGridViewRow row = new DataGridViewRow(); > > DataGridViewTextBoxCell tboxcell = new DataGridViewTextBoxCell(); > tboxcell.Value = "hello"; > > DataGridViewButtonCell buttoncell = new DataGridViewButtonCell(); > buttoncell.Value = "world"; > > DataGridViewCheckBoxCell checkboxcell = new DataGridViewCheckBoxCell(); > checkboxcell.Value = "checkbox"; > > DataGridViewLinkCell linkcell = new DataGridViewLinkCell(); > linkcell.Value = "http://www.google.com/"; > > row.Cells.Add(tboxcell); > row.Cells.Add(buttoncell); > row.Cells.Add(checkboxcell); > row.Cells.Add(linkcell); > // row.Cells.Add(); > >// view.Rows.Add(row); > > Controls.Add(view); > } > > public static void Main (string []args) > { > Application.Run (new ExampleForm ()); > } > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 471754
: 269430 |
269433