Hashtables and DataGridView
-
Am suffering brain melt :( Just in a bog-standard C# Windows App. Could anyone show me how to get the DataGridView to actually show my values please? I thought this code would work but it shows no values in the grid. DataGridView dataGridView1 = new DataGridView(); BindingSource bindingSource1 = new BindingSource(); dataGridView1.AutoGenerateColumns = true; dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; bindingSource1.DataSource = myHashtable; dataGridView1.DataSource = bindingSource1; myHashtable has 129 rows and 2 columns. Thanks in advance.
I still remember having to write your own code in FORTRAN rather than be a cut and paste merchant being pampered by colour coded Intellisense - ahh proper programming - those were the days :)
-
Am suffering brain melt :( Just in a bog-standard C# Windows App. Could anyone show me how to get the DataGridView to actually show my values please? I thought this code would work but it shows no values in the grid. DataGridView dataGridView1 = new DataGridView(); BindingSource bindingSource1 = new BindingSource(); dataGridView1.AutoGenerateColumns = true; dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; bindingSource1.DataSource = myHashtable; dataGridView1.DataSource = bindingSource1; myHashtable has 129 rows and 2 columns. Thanks in advance.
I still remember having to write your own code in FORTRAN rather than be a cut and paste merchant being pampered by colour coded Intellisense - ahh proper programming - those were the days :)
No Problmes. It is working .... and should work at yourend too
B O N D
-
Am suffering brain melt :( Just in a bog-standard C# Windows App. Could anyone show me how to get the DataGridView to actually show my values please? I thought this code would work but it shows no values in the grid. DataGridView dataGridView1 = new DataGridView(); BindingSource bindingSource1 = new BindingSource(); dataGridView1.AutoGenerateColumns = true; dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; bindingSource1.DataSource = myHashtable; dataGridView1.DataSource = bindingSource1; myHashtable has 129 rows and 2 columns. Thanks in advance.
I still remember having to write your own code in FORTRAN rather than be a cut and paste merchant being pampered by colour coded Intellisense - ahh proper programming - those were the days :)