473,386 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Datagrid in webpage

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!!!?
--
Regads,
Rochdi
Nov 19 '05 #1
3 1066
"=?Utf-8?B?TWlrZQ==?=" <Mi**@discussions.microsoft.com> wrote in
news:EA**********************************@microsof t.com:
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 (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.

Newmarket Volvo Sucks! http://newmarketvolvo.tripod.com
Nov 19 '05 #2
How, could u pls give a short sample

thanks
--
Regads,
Rochdi
"Lucas Tam" wrote:
"=?Utf-8?B?TWlrZQ==?=" <Mi**@discussions.microsoft.com> wrote in
news:EA**********************************@microsof t.com:
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 (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.

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

Nov 19 '05 #3
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/quickst...tabinding.aspx.
--
HTH
srini
http://www.expertszone.com
"Mike" wrote:
How, could u pls give a short sample

thanks
--
Regads,
Rochdi
"Lucas Tam" wrote:
"=?Utf-8?B?TWlrZQ==?=" <Mi**@discussions.microsoft.com> wrote in
news:EA**********************************@microsof t.com:
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 (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.

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

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: irene | last post by:
Hi,I am trying to update a datagrid of a web page but I am having the problems. I am using the sqldataadapter and dataset to bind it to a datagrid. The web page shows a list of people(the datagrid...
1
by: .Net Sports | last post by:
I'm trying to display my datagrid (everything is named correctly in the datagrid headers), but when running , it doesnt show the datagrid on the aspx webpage: ////////// //sql statements are...
0
by: Inigo Jimenez | last post by:
I have an ASP .net web application installed in a Windows 2003 server. This web application has a webform that has a Datagrid with smartnavigation enabled. In this webpage I have a button that...
8
by: Inigo Jimenez | last post by:
I have an ASP .net web application installed in a Windows 2003 server. This web application has a webform that has a Datagrid. This Datagrid is filled with the data of a SQL table. I have a...
3
by: jm | last post by:
I have only made on asp.net vb.net application and used the "regular" DataGrid control. I found later there is a MSDataGrid and different controls. What do most people use? I am already behind the...
4
by: John Dalberg | last post by:
I have a weird problem. I have a webpage that displays a datagrid with data but when I use IE to view the html representation, the source has no table source for the datagrid. I used Opera, Mozilla...
2
by: Gummy | last post by:
Hello All, I have a webpage that has two dropdown listboxes. Based on what is selected in these dropdown listboxes, it filters a DataGrid . That works fine. In the DataGrid , when I go to edit...
0
by: herman404 | last post by:
Hi everyone, I'm trying to dynamically add 3 button columns to a DataGrid object that I have on an ASP.net webpage, but I don't see any documentation on how to do it. I've seen plenty of examples...
1
by: Big George | last post by:
Hello, I've got an aspx webpage with: - MyUserControl1 (which shows some labels) - A Panel containing MyUserControl1 - DataGrid, which has a column that when is clicked fires Sub edit_ ...
5
by: nirmala26 | last post by:
I have a webpage that displays the results of a search query on a Datagrid. The datagrid is shown completely fine on IE 6.0 but when i access the webpage from IE 7.0, the datagrid is shown only...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.