Results 1 to 2 of 2

Thread: [RESOLVED] VS[2005] Win CE 5.0 Gridview/Datagrid

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Resolved [RESOLVED] VS[2005] Win CE 5.0 Gridview/Datagrid

    Hey all,
    This is my first app for CE and I am already having trouble. Is it possible to use a Gridview in CE development? I only see the Datagrid control in my toolbox and I think I have all the references checked off that I need. If I can only use Datagrid( which I am less familiar with ) how would I bind data to it?

    Thanks

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: VS[2005] Win CE 5.0 Gridview/Datagrid

    I see no evidence of the gridview being available in the CF, which doesn't mean that it is not there, it just means that I see no evidence of it.

    Here's small snippet of code where I fill a dataset and use the dataset as a datasource for a grid:

    vb Code:
    1. cmd = dbM.GetCommand
    2.             cmd.CommandText = "SELECT * FROM EffortTable WHERE SessionDate >= '" & dt.ToShortDateString & "'"
    3.             da = New System.Data.SqlServerCe.SqlCeDataAdapter(cmd)
    4.  
    5.             da.Fill(ds)
    6.             dg1.Enabled = False
    7.             dg1.DataSource = ds.Tables(0)
    My usual boring signature: Nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width