473,387 Members | 1,624 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,387 software developers and data experts.

datagrid on 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 17 '05 #1
2 1014
call grdAssignments.DataBind(); after datasource specified.
Nov 17 '05 #2
Hi

Following could be the reason for datagrid not being invisible.
a . One of the reasons could be hat your dataset or datatable may not have
data in them. The grid will not be displayed if the dataset is empty
b. Check if the Visible property is set to True
c. Check if you have given DataGrid1.DataBind()

Regards
Naresh

"Mike" wrote:
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 17 '05 #3

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.