Groups | Blog | Home
all groups > vb.net > april 2004 >

vb.net : Datagrid-Binding How can set the no of columns ?


Cor Ligthert
4/15/2004 6:34:55 PM
Hi Agnes,

You need tablestyles and columnstyles for what you want to do, it is in this
page however not at the top.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskformattingthedatagridatdesigntime.asp

I hope this helps?

Cor

Agnes
4/15/2004 11:48:27 PM
my grid is bind to a large table.
in my select command text = "select code,name ,address1,address2"
the datagrid show 4 columns, How can I only set it to "show two columns "
???

As the users selected the row, I need to return
"code,name,address1,address2" ,
so I think I can't list view and I should not show all columns to the
datagrid

Thanks
from Agnes

Agnes
4/16/2004 11:34:40 PM
U are very kind. the web site is helpful. I can solve my problem .

Thanks a lot
From Agnes ^_^
"Cor Ligthert" <notfirstname@planet.nl> ¦b¶l¥ó
news:%23UtoWgwIEHA.4052@TK2MSFTNGP12.phx.gbl ¤¤¼¶¼g...
[quoted text, click to view]

AddThis Social Bookmark Button