Anuruddha's Blog
Monday, December 10, 2007
Data Bind to List Box with Item and Index
while (groupsDTR.Read())
{
myGroupListBox.Items.Add(groupsDTR["Description"].ToString());
myGroupListBox.Items[(myGroupListBox.Items.Count - 1)].Value = groupsDTR["Grouping_ID"].ToString();
}
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment