DataGridViewBand.Frozen properti always come false. how can i set it true. Did i do something wrong?
You can see sample code
private void grd_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
if (e.RowIndex == 0 && e.ColumnIndex == 0)
DataGridViewBand band = grd.Rows[e.RowIndex];
band.Frozen = true;
locking rows is not yet supported. You could either use HTML for your header cell to have multiline texts or include one of the many pivot tables that are available.
Find a sample for an integration of the DevExtreme Pivot Grid here:
Do not just think of it as a CellFormatting event. That event is a test record. I can use other events as well. Like DataBindingComplete.
As rational reason; I made a simple PivotTable and used it as the first two lines HeaderCell. I want to use these two lines as frozen.
Please login first to submit.