5
Reply

Please help - datagridview

Anthony Clarke

Anthony Clarke

Dec 11 2010 12:37 PM
7k

Hi,
I want to populate a datagrid view with quite a bit of random data but dont want to have to keep using
datagridview.columns.add("etc")
datagridview.rows.add("etc")
a few hundread times and was wondering whether there is a quick method for this.
Something like
for (int i = 0; i < int 100; i++;
{
datagrid.columns.add("1", "2", "3", "4")
datagrid.rows[i].add(rnd 10000)
}
 
Thank you for your time
Regards
Anthony

Answers (5)