471,317 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

DataGridView Problemmmmmmmmmmm??

Hi all
In my application I dynammically bind my datasource to my datagridview..and
define some Columns for it..
but unfortuantely it shows all of coulumns..

I want datagrid show just some columns not all of; them..
when I do it dynammically it shows all of columns :(

thanks in advance
Jan 22 '06 #1
3 999
go to property builder and add bounded colum's, Give colums u want to
fetch from Database only.

U can refer MSDN for same

Vaibhav

Jan 22 '06 #2
I don't have datasource at desing time..
just in run time.
<va************@gmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
go to property builder and add bounded colum's, Give colums u want to
fetch from Database only.

U can refer MSDN for same

Vaibhav

Jan 22 '06 #3
Hi perspolis,
you need to set the AutoGenerateColumns property of the datagrid to false.
Then manually add the ones you want in code (if you are not adding the
desired ones at design time).

Hope that helps

Mark Dawson
http://www.markdawson.org


"perspolis" wrote:
I don't have datasource at desing time..
just in run time.
<va************@gmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
go to property builder and add bounded colum's, Give colums u want to
fetch from Database only.

U can refer MSDN for same

Vaibhav


Jan 22 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by DraguVaso | last post: by
10 posts views Thread by Henok Girma | last post: by
7 posts views Thread by Mitchell S. Honnert | last post: by
7 posts views Thread by =?Utf-8?B?TG9zdEluTUQ=?= | last post: by
reply views Thread by jeastman - Hotmail | last post: by
3 posts views Thread by Andrus | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.