dataGrid winforms how to bound columns?

  • Thread starter Thread starter Serdge Kooleman
  • Start date Start date
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
 
try like this

gridTableStyle's MappingName = tablename
gridTextBoxColumn's MappingName = datacolumn
 
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
 
Back
Top