How can i freeze columns or Rows in datagrid in C#
Iam trying to freeze columns in Datagrid in C#. By freezing I mean making the column always visible even when horizontal or vertical scrolling occurs (as in Excel). My target platform is .Net 2.0 frame work. Is there any way to do this?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Roei BarRank #1,271 · 1.4K reputationPosted Aug 26, 2009, 12:18 AM EDT
Datagrid Column and Row has a property called "Frozen"
if you want to freeze a column i recommend you do the following
either you want it on selected Row or Column Event and then on the Event Get the Column/Row and mark it as Frozen = true
or create another button or a context menu on mouse right click on which you Freeze/Unfreeze the currently marked
column/row
hope this helps
dont forget to mark this as "Accepted Answer"
and good luck