datagrid is invisiable when .aspx page is launch on web server

N

nss

hi,
I created web page ( .aspx) then i imported datagrid on that page with
dataset. But when i launch the page on web server the datagrid is
invisiable. Can someone help me how i can make it visible when launch on web
server.

regards,

Sam
 
P

Paul Krasucki

You have to databind the datagrid to the dataset before it will display on a
webpage. Do this:

DataAdapter.Fill(DatasetName);

dataGrid1.datasource = DatasetName;

dataGrid1.DataBind();

Hope it helps.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Check a few things:
- datagrid.Visible = true;
- that you do a datagrid.DataBind()
- that the dataset and datatable contains data

if not , post some code and we will help you

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top