michellechan57
asked on
Fixed Row in DataGridView
Is it possible to fixed more than one row in DataGridView in C# windows form (similar to Delphi's TStringGrid component) ?
Lets say I wanted the first two rows to freeze, then row number 2 should behave like row number 1, its color and style should be similar to row number 1 as well. Also, when I scroll vertically, row number 2 again will like row number 1 will always be visible.
Lets say I wanted the first two rows to freeze, then row number 2 should behave like row number 1, its color and style should be similar to row number 1 as well. Also, when I scroll vertically, row number 2 again will like row number 1 will always be visible.
ASKER
Hi Bob,
Below statement can freeze the column or row but the style did not changed.
I supposed have to explicitly set the style
dataGridView1.Columns[0].F rozen = true;
dataGridView1.Rows[1].Froz en = true;
Below statement can freeze the column or row but the style did not changed.
I supposed have to explicitly set the style
dataGridView1.Columns[0].F
dataGridView1.Rows[1].Froz
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Bob