D
daniel_westerberg_1979
Hi
I have 2 problems with a datagrid
problem 1
I use a datatable as datasource and I don't want the last row to be
visible (the one where you can add new rows) how can I do this?
problem 2
I use the folowing code to hide some columns to the user
dataGrid_practicegrid.TableStyles[0].GridColumnStyles[3].Width =
0;
dataGrid_practicegrid.TableStyles[0].GridColumnStyles[4].Width =
0;
and it works the first time the code is executed, but when I repress
the button that executes this code the columns becomes visible again..
I find this very strange.
I have 2 problems with a datagrid
problem 1
I use a datatable as datasource and I don't want the last row to be
visible (the one where you can add new rows) how can I do this?
problem 2
I use the folowing code to hide some columns to the user
dataGrid_practicegrid.TableStyles[0].GridColumnStyles[3].Width =
0;
dataGrid_practicegrid.TableStyles[0].GridColumnStyles[4].Width =
0;
and it works the first time the code is executed, but when I repress
the button that executes this code the columns becomes visible again..
I find this very strange.