| Author: VijayaShankar 04 Nov 2009 | Member Level: Gold | Rating:  Points: 2 |
Your Question is not Clear. Please elabrate. You want with out fill method of dataadapter or.
|
| Author: Lakhan Pal 04 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
Hi SuganyaCMR -
Can you please explain your question by giving little bit more explanation?
Please rate this answer if it helped you. Thanks & Regards Lakhan Pal Garg Free Code Snippets
|
| Author: raviranjan singh 14 Nov 2009 | Member Level: Silver | Rating:  Points: 2 |
if u dont want to use fill method than u can bind your gridview ..row by row..
|
| Author: Selvam 14 Nov 2009 | Member Level: Bronze | Rating:  Points: 2 |
hi yar, if u r using dataGridView ,so u can get the values from Database..no need of add each n every row..according to the query ,it will retrive the values from database and store it in Dataset.if its contain more than one row it ill fetch automatically.
For ex:
SqlDataAdapter sqData = new SqlDataAdapter("select DeptName from Department", con); DataSet dSetForGrid = new DataSet(); sqData.Fill(dSetForGrid); dataGridView1.DataSource = dSetForGrid.Tables [0].DefaultView; dataGridView1.DataSource = dt.DefaultView;
|