On this exemple i can only edit the checkbox4 column. I dont understand why i cant edit my title and date1 column. can someone help me please.
All my columns is .IsBound=False
My code :
GridBase.DisplayLayout.AutoGenerateColumns = FalseGridBase.DataSource = objDS.Tables("Table")GridBase.DataBind()
With GridBase.DisplayLayout.Bands(0).Columns .FromKey("noid").Hidden = True
.FromKey("title").Header.Caption = "Title" .FromKey("title").Width = Unit.Pixel(70) .FromKey("title").AllowUpdate = AllowUpdate.Yes
.FromKey("checkbox4").Header.Caption = "Exclude" .FromKey("checkbox4").Width = Unit.Pixel(50) .FromKey("checkbox4").Type = ColumnType.CheckBox .FromKey("checkbox4").AllowUpdate = AllowUpdate.Yes
.FromKey("date1").Header.Caption = "Date" .FromKey("date1").Width = Unit.Pixel(90) .FromKey("date1").Type = ColumnType.Custom .FromKey("date1").DataType = "System.DateTime" .FromKey("date1").Format = "yyyy-MM-dd" .FromKey("date1").EditorControlID = WebDateChooser1.UniqueID .FromKey("date1").AllowUpdate = AllowUpdate.Yes End With
Hunch: IIRC, the checkboxes in a CheckBox column are active by default, but you have to double-click on a row to put the text columns into edit mode. Are you doing that?