PC Review


Reply
Thread Tools Rate Thread

DataGrid won't display DataSet

 
 
=?Utf-8?B?Qm9i?=
Guest
Posts: n/a
 
      23rd Dec 2004
have a DataSet (dsVER) that contains one table (tblVersion) which has 39
rows in it. when I try to display the table in a datagrid I only get a
button, with a triangle on it,in the top left corner of the grid. No data is
displayed. Tapping the button doesn't do anything.

VerRecCount = daVER.Fill(dsVER, "tblVersion")
MessageBox.Show(CType(VerRecCount, String))
Me.dgdVER.DataSource = dsVER
 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      23rd Dec 2004
In the Compact Framework you must explicitly set a table within the dataset
e.g.
Me.dgdVER.DataSource = dsVER.Tables("tblVersion")

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"Bob" <(E-Mail Removed)> wrote in message
news:EB65BB4C-8B4E-4F18-9681-(E-Mail Removed)...
> have a DataSet (dsVER) that contains one table (tblVersion) which has 39
> rows in it. when I try to display the table in a datagrid I only get a
> button, with a triangle on it,in the top left corner of the grid. No data
> is
> displayed. Tapping the button doesn't do anything.
>
> VerRecCount = daVER.Fill(dsVER, "tblVersion")
> MessageBox.Show(CType(VerRecCount, String))
> Me.dgdVER.DataSource = dsVER



 
Reply With Quote
 
Ilya Tumanov [MS]
Guest
Posts: n/a
 
      27th Dec 2004
Which, BTW, would be fixed in V2.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
> From: "Peter Foot [MVP]" <(E-Mail Removed)>
> References: <EB65BB4C-8B4E-4F18-9681-(E-Mail Removed)>
> Subject: Re: DataGrid won't display DataSet
> Date: Thu, 23 Dec 2004 16:57:44 -0000
> Lines: 24
> Organization: In The Hand Ltd
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
> X-RFC2646: Format=Flowed; Original
> Message-ID: <(E-Mail Removed)>
> Newsgroups: microsoft.public.dotnet.framework.compactframework
> NNTP-Posting-Host: client-82-2-61-70.brnt.adsl.virgin.net 82.2.61.70
> Path:

cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
> Xref: cpmsftngxa10.phx.gbl

microsoft.public.dotnet.framework.compactframework:67485
> X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
>
> In the Compact Framework you must explicitly set a table within the

dataset
> e.g.
> Me.dgdVER.DataSource = dsVER.Tables("tblVersion")
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> www.inthehand.com | www.opennetcf.org
>
> "Bob" <(E-Mail Removed)> wrote in message
> news:EB65BB4C-8B4E-4F18-9681-(E-Mail Removed)...
> > have a DataSet (dsVER) that contains one table (tblVersion) which has 39
> > rows in it. when I try to display the table in a datagrid I only get a
> > button, with a triangle on it,in the top left corner of the grid. No

data
> > is
> > displayed. Tapping the button doesn't do anything.
> >
> > VerRecCount = daVER.Fill(dsVER, "tblVersion")
> > MessageBox.Show(CType(VerRecCount, String))
> > Me.dgdVER.DataSource = dsVER

>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
display and access selected items from dataSet to Datagrid in asp.net ajaspersonal@gmail.com Microsoft ASP .NET 0 7th Mar 2007 05:46 AM
Can't display dataset in windows form datagrid =?Utf-8?B?dml0YQ==?= Microsoft Dot NET Framework Forms 1 28th Mar 2005 08:59 PM
Best way to display selective data using a datagrid and dataset =?Utf-8?B?RnVuZ2kyMDAz?= Microsoft VB .NET 3 24th May 2004 12:18 PM
DataGrid Component | Displaying columns of a DataSet as Rows in a DataGrid ? Diego TERCERO Microsoft C# .NET 3 19th Dec 2003 03:21 PM
How to refresh DataGrid to display latest dataset data?? Ivan Microsoft ADO .NET 1 30th Jul 2003 01:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:06 PM.