[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
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:
cmd = dbM.GetCommand
cmd.CommandText = "SELECT * FROM EffortTable WHERE SessionDate >= '" & dt.ToShortDateString & "'"
da = New System.Data.SqlServerCe.SqlCeDataAdapter(cmd)
da.Fill(ds)
dg1.Enabled = False
dg1.DataSource = ds.Tables(0)