Wrox Programmer Forums
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 19th, 2006, 06:25 AM
4x4 4x4 is offline
Registered User
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default DGV Binding

How can I bind only a few columns of a datasource to my DataGridView.


koolbut
 
Old January 13th, 2007, 04:31 AM
Authorized User
 
Join Date: Dec 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sunnys Send a message via Yahoo to Sunnys
Default

one way is to set AutoGenerateColumn to false then define the column u want to show.
or hide the column which u dont want.

hope this help







Similar Threads
Thread Thread Starter Forum Replies Last Post
late binding,help? alexcym Visual Basic 2005 Basics 2 April 7th, 2008 03:26 PM
DGV CheckBox Click Issue obrienkev C# 2005 1 December 17th, 2007 06:04 AM
DGV with MemoBox, Datetimepicker rhd110 General .NET 1 April 23rd, 2007 07:27 AM
DataGrid Binding GrindCrusher Classic ASP Databases 0 February 21st, 2004 05:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.