c# - Array to CheckboxList and again to array -
hi have little problem. items array
this.headerfields = new string[]{ "proj_id", "model", "esn", "location", "datatype", "testtype", "test", "trrdg", "rdg", "testdate", "testtime" };
and set them checkedlistbox
line of code
checkedlstboxheaderfield.items.addrange(settings.headerfields); controls.add(checkedlstboxheaderfield);
that works. when open winforms want check of values , ok button go nextstep , when reopen form want see items checked , unchecked. try
settings.headerfields = checkedlstboxheaderfield.checkeditems.oftype<string>().toarray();
but these line of code became checked items. please help....
settings.headerfields = checkedlstboxheaderfield.items.oftype<string>().toarray();
Comments
Post a Comment