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

  • Thread starter Thread starter nss
  • Start date Start date
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
 
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.
 
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,
 
Back
Top