Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
Can't edit on string and date column
posted

 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 = False
GridBase.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

Parents
No Data
Reply Children
No Data