Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

DataGrid/DataSet programmer help is needed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chook.harel@gmail.com - 05 Jun 2006 11:53 GMT
Hi there, Until today I was working with listviews...
but now i need to start working with the DataGrid object to show data
from my SQLMobile tables.

I would really appreciate if someone could contact me on MSN messanger:
chook_rl@hotmail.com

I have some questions that i'm sure that for you will be easy to
answer.

I'll post them here anyway:

The datagrid shows the two columns clientID and clientName,
How can I change the appearnces of those two, meanning that the
clientName will be on the right and the clientID on the left.
Moreover, how can I change the width of the columns on default without
having the user expand when he needs...
And the last for now.. how can I iterrate on the table, Where can I
find the bound..
(DataGrid.DataSource?DataBindings... too much stuff I get confused)

By the way, I'm programming C# .net2005 for PocketPC2003,

Thanks for any help you can provide.
Ben Voigt - 05 Jun 2006 14:41 GMT
> Hi there, Until today I was working with listviews...
> but now i need to start working with the DataGrid object to show data
[quoted text clipped - 18 lines]
>
> By the way, I'm programming C# .net2005 for PocketPC2003,

How does PPC2003 version compare to Windows Mobile for Pocket PC, Windows
Mobile for Smartphone?

If DataGridView is supported on your device, it makes everything you are
asking about very easy.

> Thanks for any help you can provide.
chook.harel@gmail.com - 05 Jun 2006 16:06 GMT
No there isn't any DataGridView...

Is there any solution to what i've asked in the ordinary DataGrid
Brian Tkatch - 06 Jun 2006 14:47 GMT
> Hi there, Until today I was working with listviews...
> but now i need to start working with the DataGrid object to show data
[quoted text clipped - 11 lines]
> How can I change the appearnces of those two, meanning that the
> clientName will be on the right and the clientID on the left.

If they are filled from a SQL statement the roder of the columns as
pulled from the database make the difference.

If a table mapping is used, however, the table mapping specifies the
order and the names.

> Moreover, how can I change the width of the columns on default without
> having the user expand when he needs...

I'm almost there myself. :)

I see a property for preferred column width in the data grid. Not sure.

> And the last for now.. how can I iterrate on the table, Where can I
> find the bound..
> (DataGrid.DataSource?DataBindings... too much stuff I get confused)

The datasource is the dataset the datagrid is bound to. A dataset is a
collection of datatables (and dataviews, datarelations, et al).

It matters what you want to iterated. To iterate what the database
returned does not require referencing the datagrid.

> By the way, I'm programming C# .net2005 for PocketPC2003,

I'm using VB 2003. I hope what i say is relevant.

> Thanks for any help you can provide.

B.
chook.harel@gmail.com - 07 Jun 2006 08:54 GMT
Thanks alot!,

Do you know how to disable the horz scroll bar

I dont want to appear even if needed
> > Hi there, Until today I was working with listviews...
> > but now i need to start working with the DataGrid object to show data
[quoted text clipped - 42 lines]
>
> B.
Brian Tkatch - 07 Jun 2006 16:46 GMT
> Thanks alot!,
>
> Do you know how to disable the horz scroll bar
>
> I dont want to appear even if needed

Nope. Not yet.

To resize the columns, however check out this article, with the
comments.

<URL:http://www.hanselman.com/blog/CommentView.aspx?guid=f3e94fab-335d-497f-8340-9c4a
e8e02fa3
>

B.

> > > Hi there, Until today I was working with listviews...
> > > but now i need to start working with the DataGrid object to show data
[quoted text clipped - 42 lines]
> >
> > B.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.