public void Init_from_XMLobj(Hss_XML_obj hxo) { if (hxo == null) { return; } this.colKey_list.Clear(); string name = hxo.Get_attr("Key"); if (!string.IsNullOrEmpty(name)) { this.Key = name; } List <Hss_XML_obj> list = hxo.Get_all_obj(); for (int i = 0; i < list.Count; ++i) { Hss_XML_obj xo = list[i]; string colKey = xo.value; bool hidden = HssStr.True_or_False(xo.Get_attr("Hidden")); HssGridColumn hgc = new HssGridColumn(colKey, hidden, i); this.colKey_list.Add(hgc); } }