|
Hi,
i am using .Net 2.0.
here i am using data set to retrieve value from data base and then binding it with data grid view.
but it's not displaying appropriately.
here is my code.
DataAdapter d=new DataAdapter();
select command fro data adptr.
dataSet ds=new dataSet();
d.Fill(ds);
Gridview1.datasource=ds;
gridview1.databind();
i changed auto-generate property of gridview to true also..
|
|
|
|
|
did you check the table has any rows in it?
Jibesh.V.P
India
|
|
|
|
|
yes...
data set is displaying just above the GridView.
with the specific records...
but not inside the GridView....
|
|
|
|
|
can you copy the screen shot of the screen ?
Jibesh V P
|
|
|
|
|
i took screen shoot then only...but was not there.
please tell me hw to post screen shoot
|
|
|
|
|
you can use any free image hosting site. try this[^]
Jibesh V P
|
|
|
|
|
Yes. I can see the image. instead the dataSource as such can you bind with the dataTable inside the dataSource.
eg: datagridview1.DataSource = dataSet.Tables[0];
Jibesh V P
|
|
|
|
|
will try to find an answer. not a webExpert so it might take some more time than usual, if you can e-mail the webpage files i dont need to create on by my own.?
Jibesh V P
|
|
|
|
|
aman1124 wrote: gridview1.databind(); According to Microsoft this method is only used in Webforms. Is this an ASP.NET or pure .NET application?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
by looking at the image[^] they shared it looks like ASP.Net application but not sure what it is.
Jibesh V P
|
|
|
|
|
Then you should use the ASP.NET forum.
One of these days I'm going to think of a really clever signature.
|
|
|
|