Locking datagrid columns (Windows Forms)

Set the ReadOnly Property of the DataGridColumnStyle to true for the columns that you would like to be 'locked'

Thanks for replying, and sorry, I should have written that in a different way. In fact, I need to freeze the leftmost grid column(s) in order to prevent it (them) from scrolling along with the others.

Is that possible?
 
I can't think of an easy way to do that with the default DataGrid....you would need to get creative with a custom Control. You may want to check out ComponentOne Grids . The ComponentOne TrueDbGrid supports 'splits' similar to Excel.

m_oliveira said:
Thanks for replying, and sorry, I should have written that in a different way. In fact, I need to freeze the leftmost grid column(s) in order to prevent it (them) from scrolling along with the others.

Is that possible?
 
Back
Top