PC Review


Reply
Thread Tools Rate Thread

Where is the Column collection in a DataGrid?

 
 
mCompany
Guest
Posts: n/a
 
      23rd Aug 2003
How do I access the Column collection in a bound DataGrid?

Example:

DataGrid.DataSource = ds.Tables("MyTable")


 
Reply With Quote
 
 
 
 
Jonny Yu
Guest
Posts: n/a
 
      25th Aug 2003
Hi,
The DataGrid doesn't own the column collection, if you want to modify
the field definition, you may refer to the DataTable.Columns. if you want to
add your own column style(look&feel of display, modify of the column) , you
may refer to the DataGrid.TableStyle. for more information please lookup in
MSDN.
thanks!

regards,

Ying-Shen Yu

"mCompany" <(E-Mail Removed)> ????
news:04d001c3692b$00ff7e00$(E-Mail Removed)...
> How do I access the Column collection in a bound DataGrid?
>
> Example:
>
> DataGrid.DataSource = ds.Tables("MyTable")
>
>



 
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
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Øyvind Isaksen Microsoft ASP .NET 1 18th May 2007 10:24 AM
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Øyvind Isaksen Microsoft Dot NET 1 18th May 2007 10:24 AM
bind a dropdown in a column in a datagrid based on the dropdown value selected in another column of the datagrid. vishnu Microsoft ASP .NET 1 25th Mar 2006 01:24 PM
Is there any method that can add custom datagrid column to the table style collection editor? Cyrus Microsoft Dot NET Framework Forms 2 15th Dec 2003 03:05 AM
Column order when binding DataGrid with typed collection Gerardo A Medina Microsoft Dot NET Framework Forms 1 24th Sep 2003 05:30 AM


Features
 

Advertising
 

Newsgroups
 


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