private void getCheckedFeatures() { SQLQuery sQLQuery = new SQLQuery(); DataTable dt = sQLQuery.getChildFeaturesByID(GlobalVariables.globalChild.id.ToString()); foreach (DataRow dr in dt.Rows) { IsChecked.Add(Int32.Parse(dr[0].ToString()), 1); } }