PC Review


Reply
Thread Tools Rate Thread

DataGrid bind

 
 
chora
Guest
Posts: n/a
 
      26th Nov 2004

I can swear that I saw a posting about how to bind selected columns of a
datatable to a Grid.

I searched in every possible way and couldn't find it.

Can anyone help me? ( Or did I just dream about it!)



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      26th Nov 2004
There are two ways you can do this, one is to create a DataView from your
table with just the required fields selected, then bind this to the grid.
The other option is to set the datagridtablestyle and specify custom columns
and their bindings. A sample of the latter method is available here:-
http://www.inthehand.com/forums/viewtopic.php?t=96

Peter

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

"chora" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> I can swear that I saw a posting about how to bind selected columns of a
> datatable to a Grid.
>
> I searched in every possible way and couldn't find it.
>
> Can anyone help me? ( Or did I just dream about it!)
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
>



 
Reply With Quote
 
chora
Guest
Posts: n/a
 
      26th Nov 2004

Thanks a lot Peter.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Earl
Guest
Posts: n/a
 
      27th Nov 2004
You can also hide the columns you do not want to display before you bind it.

"chora" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> I can swear that I saw a posting about how to bind selected columns of a
> datatable to a Grid.
>
> I searched in every possible way and couldn't find it.
>
> Can anyone help me? ( Or did I just dream about it!)
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
>



 
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
DataGrid Bind to DataSet, then Bind to DaTaview, GOT ERROR...PLS HELP A_PK Microsoft Dot NET Compact Framework 16 13th Apr 2005 04:27 AM
DataGrid Bind to DataSet, then Bind to DaTaview, GOT ERROR...PLS HELP A_PK Microsoft VB .NET 17 13th Apr 2005 04:27 AM
Bind array to a datagrid Microsoft Microsoft VB .NET 3 21st Dec 2004 09:01 AM
How do I only bind certain columns with a DataGrid? Grant Microsoft ADO .NET 3 14th Dec 2004 07:36 PM
datagrid bind with three different datatablea =?Utf-8?B?c3VyZXNoX0Mj?= Microsoft ASP .NET 1 29th Sep 2004 10:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:56 AM.