|
-
June 27th, 2008, 02:25 AM
#1
binding Hashtable data in DataGridView?
I want to present a Hshtable data in a DataGridView table.
How do i do that ?
i tried the following , but nothing happens is presented :
Hashtable ht = new Hashtable();
ht.Add(1, 5);
ht.Add(2, 3);
dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dataGridView1.AutoGenerateColumns = true;
dataGridView1.DataSource = ht;
please help...
-
June 30th, 2008, 05:06 AM
#2
Re: binding Hashtable data in DataGridView?
put it in a datatable instead
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|