Locked DataGridView. Linq is a problem ?
- by phenevo
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)