hi,

i need to add the information into the datagridview manually. i searched in google and books. they fill the datagridview by using
Datasource method. but i need to add at compile time

please share ur ideas.......

You havent done that much reading then. make a data source in memory, and assign it to the datagrid view.

i need to add the data into the datagridview without using datasource method.
any direct method present please share ur ideas.

You can create a datatable manually and then bind datagridview with that table.

i got solution for the above problem


dataGridView1.Rows.Add(<value>,<value>,<value>,.....);

hi,

i used the above code. its add only one row. ok i need to add some rows at run time. what can i do

add data for all the rows you want.. This just shows you're being incredibly lazy

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.