Locked DataGridView. Linq is a problem ?
Posted
by phenevo
on Stack Overflow
See other posts from Stack Overflow
or by phenevo
Published on 2010-04-02T09:14:54Z
Indexed on
2010/04/02
10:33 UTC
Read the original article
Hit count: 309
Hi,
I get the collection from webservice:
var allPlaceHolders = (from ph in new MyService().GetPlaceHolders()
select ph).Select(l => new { Code = l.Code, Name = l.Name, Related = false }).ToList();
dgPlaceHoldersAdd.DataSource = allPlaceHolders;
Designer.cs:
this.dgPlaceHoldersAdd.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgPlaceHoldersAdd.Location = new System.Drawing.Point(3, 54);
this.dgPlaceHoldersAdd.Name = "dgPlaceHoldersAdd";
this.dgPlaceHoldersAdd.RowHeadersVisible = false;
this.dgPlaceHoldersAdd.Size = new System.Drawing.Size(286, 151);
this.dgPlaceHoldersAdd.TabIndex = 15;
The problem is, that I can't changing value of checkBox column.
I has enabled AutoGeneratedColumns (In datagridview at start there is not any column)
© Stack Overflow or respective owner