Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a datagrid
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00857342
Message ID:
00857383
Views:
26
>>Using the Northwind database, I'm trying to display the order records associated with the employee currently being displayed. For the first employee, EmployeeID=1, I should get 123 records.
>>
>>I'm still stuck on something...pardon me for being a newbie to VB... I followed an example from microsoft. The example worked. I tried doing what I saw in their example but I'm still missing something.
>>
>>According to the debugger, my dataset that I've associcated with my datagrid, has 123 records in it. However all I'm seeing in my datagrid are the column headings for the orders table.
>>
>>Any idea what I'm missing?
>>TIA,
>>Rick
>
>
>Rick;
>
>in the load using VB
>
>
>
>
>DataGrid1.DataSource = DataSet1.Tables("Products").DefaultView
>DataGrid1.DataBind()
>
>
>
>Tom
---------------------
Tom,
I think your example may have to do with ASP (I'm working on a VB.Net desktop app). When I enter DataGrid1.DataBind() into my code the VB.Net editor flags it as an error. Also, I looked in the example I got from microsoft and I don't see a DataGrid1.DataBind() in there.
The microsoft example is the
Visual Basic .NET Code Sample: DataGrid Formatting
This sample shows how you can retrieve data from the database, display the data in a DataGrid, and how to format the appearance of the DataGrid.
http://www.microsoft.com/downloads/details.aspx?FamilyID=28fd458f-5571-42b4-a2fe-09b69ddf0863&displaylang=en

From that example I built a different example, expanding on a program I've been making as a small learning tool...when I get that working I then go to my real program I'm trying to develop and do it there...it's easier to get it right in the small example first :-)

In my small example I use the Northwind data and display employee information, with vcr navigation. I've added a Tab Control with 2 pages. on the 2nd page I display all the employee info for the currently selected employee. on the 1st page I'm trying to display a data grid containing records from the orders table associated with the current employee.

I could send you my small example if you'd like.

Any other ideas?

Rick
Previous
Reply
Map
View

Click here to load this message in the networking platform