how to add the data into datagrid view

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2008
Posts: 56
Reputation: karthi_selva is an unknown quantity at this point 
Solved Threads: 0
karthi_selva karthi_selva is offline Offline
Junior Poster in Training

how to add the data into datagrid view

 
0
  #1
Feb 11th, 2009
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.......
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: how to add the data into datagrid view

 
0
  #2
Feb 11th, 2009
You havent done that much reading then. make a data source in memory, and assign it to the datagrid view.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 56
Reputation: karthi_selva is an unknown quantity at this point 
Solved Threads: 0
karthi_selva karthi_selva is offline Offline
Junior Poster in Training

Re: how to add the data into datagrid view

 
0
  #3
Feb 11th, 2009
i need to add the data into the datagridview without using datasource method.
any direct method present please share ur ideas.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 15
Reputation: bhaskerlee is an unknown quantity at this point 
Solved Threads: 1
bhaskerlee bhaskerlee is offline Offline
Newbie Poster

Re: how to add the data into datagrid view

 
0
  #4
Feb 11th, 2009
You can create a datatable manually and then bind datagridview with that table.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 56
Reputation: karthi_selva is an unknown quantity at this point 
Solved Threads: 0
karthi_selva karthi_selva is offline Offline
Junior Poster in Training

Re: how to add the data into datagrid view

 
0
  #5
Feb 11th, 2009
i got solution for the above problem


dataGridView1.Rows.Add(<value>,<value>,<value>,.....);
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 56
Reputation: karthi_selva is an unknown quantity at this point 
Solved Threads: 0
karthi_selva karthi_selva is offline Offline
Junior Poster in Training

Re: how to add the data into datagrid view

 
0
  #6
Feb 11th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: how to add the data into datagrid view

 
0
  #7
Feb 11th, 2009
add data for all the rows you want.. This just shows you're being incredibly lazy
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC