dataGrid winforms how to bound columns?

S

Serdge Kooleman

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
 
J

Jonathan Woods

try like this

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

Serdge Kooleman

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top