Datagrid in webpage

G

Guest

Hi,

I'he a datagrid in asp.net in a C# project and binded the following dataset
to it:
grdAssignments.DataSource = myDataSet.Tables[0];
but whey I run it the grid is not visible!!!?
 
L

Lucas Tam

Hi,

I'he a datagrid in asp.net in a C# project and binded the following
dataset to it:
grdAssignments.DataSource = myDataSet.Tables[0];
but whey I run it the grid is not visible!!!?


u need to call .databind.
 
G

Guest

How, could u pls give a short sample

thanks
--
Regads,
Rochdi


Lucas Tam said:
Hi,

I'he a datagrid in asp.net in a C# project and binded the following
dataset to it:
grdAssignments.DataSource = myDataSet.Tables[0];
but whey I run it the grid is not visible!!!?


u need to call .databind.


--
Lucas Tam ([email protected])
Please delete "REMOVE" from the e-mail address when replying.

Newmarket Volvo Sucks! http://newmarketvolvo.tripod.com
 
G

Guest

Hi Mike,
You should call databind after specifying the datasource
grdAssignments.DataSource = myDataSet.Tables[0];
grdAssignments.DataBind();
You can find more information here
http://www.dotnetjunkies.com/quickstart/aspplus/doc/webdatabinding.aspx.
--
HTH
srini
http://www.expertszone.com


Mike said:
How, could u pls give a short sample

thanks
--
Regads,
Rochdi


Lucas Tam said:
Hi,

I'he a datagrid in asp.net in a C# project and binded the following
dataset to it:
grdAssignments.DataSource = myDataSet.Tables[0];
but whey I run it the grid is not visible!!!?


u need to call .databind.


--
Lucas Tam ([email protected])
Please delete "REMOVE" from the e-mail address when replying.

Newmarket Volvo Sucks! http://newmarketvolvo.tripod.com
 

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,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top