Question DataGrid - set editable column

thesti

New member
Joined
Oct 21, 2008
Messages
3
Programming Experience
Beginner
hello,

i'm a newbie in vb .net. is it possible to set some columns in a DataGridView control to be editable while the other columns are readOnly ?

and also is it possible to choose not to display the left most column, it doesn't contain any data, it's the one that shows '*' and the left arrow symbol to show which row is selected.


Thank you,
SC
 
You can get column read only with its index or name
datagrid1.columns(columnindex).Readonly=false

to hide blank column can compare its row and if all are blank
can hide it using
datagrid1.columns(columnindex).visible=false
 
Back
Top