English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have a grid view and would like to change some things around with it like the align of the text in the second column. My Code

gridview.datasoure = mydataset
gridview.databind
gridview.column(1).ItemStyle.HorizontalAlign = HorizontalAlign.Left

I use 1 becasue 0 is the column with my likebutton.
I get an error saying 1 is out of the index of my dataview. How can I align this column. Do I have to bind my dataset to the dataview in another way so I can have more contorl over the columns?

2007-01-16 09:17:43 · 1 answers · asked by csdraska 1 in Computers & Internet Programming & Design

1 answers

you might have to use the PROPERTIES WINDOW at DESIGN TIME in order to bind the grid to the recordset to get this working.

2007-01-16 09:46:17 · answer #1 · answered by Richard H 7 · 0 0

fedest.com, questions and answers