Grid Not Rendering

N

news.microsoft.com

..Net 1.1

DataGrid shows okay in the IDE. Connected to a DataSet defined as design
time and the columns info is populating without a problem. But at run time,
the Grid isn't being rendered.

There's an ASP label just above the grid that's getting rendered without a
problem, so ASP .NET is running on the IIS box.

Anyone know why the grid wouldn't render. There is data in the table.
Thanks.

Jerry
 
S

Steven Cheng[MSFT]

Hi Jerry,

Thank you for posting.

From your description, you're developing an ASP.NET 1.1 page which use
DataGrid control to display some data come from a DataSet (generated at
design-time). However, at runtime, you found the DataGrid didn't render
anything on the page, correct?

As for the issue, I'd like to confirm with you the databinding code you
used on the DataGrid control. Have you put code in Page's Codebehind to
explicitly assign the DAtaset to DataGrid.DataSource and call the
DataBind() method on it? In ASP.NET 1.1, it is necessary to explicitly set
databound control's DataSource and call its DataBind() method to populate
the data. e.g:

-=========================

Page_load (....)
{
if(!IsPostBack)
{
DataGrid1.DataSource = MyTypedDataSet;
DataGrid1.DataBind();
}
}
==========================

If this is not the case or if there is anything else I missed, please feel
free to post here.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,196
Latest member
ScottChare

Latest Threads

Top