473,466 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Data grid is not displaying

1 New Member
Hi
I am a new developer.I am having a problem with data grid and datalist. I set datagrid properties (datasource and datamember)at design time and called sqldataadapter's fill method on form load and passed apropriate dataset in the fill method but datagrid is not displaying when I run the program,visible property is also true. Its really a very basic programming step. Please HELP me.
Thanks
Jun 22 '07 #1
2 984
Lokean
71 New Member
Hi
I am a new developer.I am having a problem with data grid and datalist. I set datagrid properties (datasource and datamember)at design time and called sqldataadapter's fill method on form load and passed apropriate dataset in the fill method but datagrid is not displaying when I run the program,visible property is also true. Its really a very basic programming step. Please HELP me.
Thanks

This should do the trick.

Destroy your datagrid.
Create a new datagrid
drag the datasource over to your datagrid.
Go into your code and cut and paste the code around the .fill command into your form.load event.

Also: make sure that your property is set to VISIBLE for the datagrid.
Jun 22 '07 #2
nateraaaa
663 Recognized Expert Contributor
Hi
I am a new developer.I am having a problem with data grid and datalist. I set datagrid properties (datasource and datamember)at design time and called sqldataadapter's fill method on form load and passed apropriate dataset in the fill method but datagrid is not displaying when I run the program,visible property is also true. Its really a very basic programming step. Please HELP me.
Thanks
Are you calling the DataBind() method of the datagrid? You could also check your dataset after you call the fill method to make sure that there are rows in your dataset. If no rows are in your dataset then your datagrid is empty.

Nathan
Jun 22 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Shane | last post by:
I made a Database in MS Access, and i want to try to port it over to VB.NET. One thing i have is a subform that is a datasheet. what I want to know, is there away to make the data grid to have...
3
by: pmud | last post by:
Hi, I have 4 columns in my sql database table. I added a data adapter , data set & a data grid to view this information. But the data grid is displaying those 4 columns TWICE , i.e in the data...
2
by: Les | last post by:
Hi can anyone help me, I have just graduated and have started working for a building developer which deals with a large quantity of drawings. As you can imagine these all need documenting...
1
by: Ananth | last post by:
Hi, I have a question regarding data grids My application requires me to use a grid for displaying data, however I would not be using a database for procuring the data, instead I would be...
2
by: Josef Meile | last post by:
Hi, I'm using a ComboBox, some Textboxes, and a DataGrid to represent a many-to-many relationship between Person and Course. Each time that I change the value in the ComboBox (which for now is...
2
by: pmud | last post by:
Hi, I am exporting data from an EDITABLE DATA GRID EXCEL. But the 1st column in data grid is Edit Column. I want to display all columns in Excel except for the Edit column. The following...
7
by: What-a-Tool | last post by:
Have an Access table loaded into a DataTable that was created at run time, and am displaying these contents in a data grid. Me.dgGames.DataSource = Me.DsGameInfo.Tables("Games") I would like to...
1
by: thf | last post by:
Hi, I wish to know how to display a collection of object which is a property in another object in a data grid in VB.Net. For example, I'm displaying a collection of vendor objects (in ArrayList)...
0
by: Devesh | last post by:
Hi, I want to display some parameters & their value in Same data grid as shown Parameter | Value | Parameter | Value |Parameter | Value So please suggest me the way to Split...
9
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.