checkedListBox怎样邦定隐藏值

checkedListBox1.Items.Add(ds.Tables["Ro"].Rows[i], false); 
 private void checkedListBox1_Format(object sender, ListControlConvertEventArgs e)
        {
            e.Value = (e.ListItem as DataRow)["RName"].ToString(); 
        }

        private void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string id = (checkedListBox1.SelectedItem as DataRow)["Id"].ToString(); 
        }

posted on 2007-05-05 09:47  石川  阅读(185)  评论(0)    收藏  举报