943,644 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 3726
  • C# RSS
Feb 11th, 2009
0

how to add the data into datagrid view

Expand Post »
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.......
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
karthi_selva is offline Offline
65 posts
since Oct 2008
Feb 11th, 2009
0

Re: how to add the data into datagrid view

You havent done that much reading then. make a data source in memory, and assign it to the datagrid view.
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Feb 11th, 2009
0

Re: how to add the data into datagrid view

i need to add the data into the datagridview without using datasource method.
any direct method present please share ur ideas.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
karthi_selva is offline Offline
65 posts
since Oct 2008
Feb 11th, 2009
0

Re: how to add the data into datagrid view

You can create a datatable manually and then bind datagridview with that table.
Reputation Points: 12
Solved Threads: 3
Newbie Poster
bhaskerlee is offline Offline
19 posts
since Dec 2008
Feb 11th, 2009
0

Re: how to add the data into datagrid view

i got solution for the above problem


dataGridView1.Rows.Add(<value>,<value>,<value>,.....);
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
karthi_selva is offline Offline
65 posts
since Oct 2008
Feb 11th, 2009
0

Re: how to add the data into datagrid view

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
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
karthi_selva is offline Offline
65 posts
since Oct 2008
Feb 11th, 2009
0

Re: how to add the data into datagrid view

add data for all the rows you want.. This just shows you're being incredibly lazy
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: DML operation on Dataset
Next Thread in C# Forum Timeline: positioning in code





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC