PC Review


Reply
Thread Tools Rate Thread

dataGrid winforms how to bound columns?

 
 
Serdge Kooleman
Guest
Posts: n/a
 
      23rd Sep 2005
hello

i'm able to display data in datagrid.
how to change the column with, header etc?

i'm trying to add TableStyles but it is not changing anything...

my query: select id, dictionary from words

thank you


 
Reply With Quote
 
 
 
 
Jonathan Woods
Guest
Posts: n/a
 
      24th Sep 2005
try like this

gridTableStyle's MappingName = tablename
gridTextBoxColumn's MappingName = datacolumn

 
Reply With Quote
 
Serdge Kooleman
Guest
Posts: n/a
 
      26th Sep 2005
No it is not working.


What should be simplier? I just trying to rename header and column width!

SQL Query: select name from words
it is in dataSet11

then i'm writing:

dataGrid1.TableStyles[0].MappingName = "words"; //??

dataGrid1.TableStyles[0].GridColumnStyles[0].MappingName = "dictionary";



it have no effect :-(



serge



"Jonathan Woods" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> try like this
>
> gridTableStyle's MappingName = tablename
> gridTextBoxColumn's MappingName = datacolumn
>



 
Reply With Quote
 
Serdge Kooleman
Guest
Posts: n/a
 
      26th Sep 2005
thanx. it is working :-)


 
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, adding bound columns. =?Utf-8?B?Sm9u?= Microsoft ASP .NET 0 15th Feb 2006 09:22 AM
Re: Freeze Columns in .NET WinForms DataGrid Herfried K. Wagner [MVP] Microsoft VB .NET 1 2nd Jun 2004 07:41 PM
Bound DataGrid.Columns.Count = 0 Dan Microsoft ASP .NET 2 4th Mar 2004 12:55 PM
Datagrid bound columns Julie Barnet Microsoft ASP .NET 0 2nd Dec 2003 03:37 PM
Howto: Add a CheckBox column to bound WinForms DataGrid Rajesh Patel Microsoft ADO .NET 1 10th Oct 2003 07:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:43 AM.