DataGridViewBand.Frozen does not work

0
0

Hi,

DataGridViewBand.Frozen properti always come false. how can i set it true. Did i do something wrong?
You can see sample code

Sample:

private void grd_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.RowIndex == 0 && e.ColumnIndex == 0)
{
DataGridViewBand band = grd.Rows[e.RowIndex];
band.Frozen = true;
}
}

  • You must to post comments
0
0

Hi Kemal,

we currently only support frozen columns, not rows.
In any case “freezing” rows in a cell formatting event does not appear to make that much sense to me.

Best regards
Frank

  • You must to post comments
0
0

Hi Frank,

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.

Thanks.

 

  • You must to post comments
0
0

Hi Kemal,

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:

https://wisej.com/blog/integration1/

Best regards
Frank

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.