GrapeCity / ComponentOne-MAUI-Samples

3 stars 4 forks source link

flexGrid RowHeader Cell Template #2

Closed enkaradag closed 1 year ago

enkaradag commented 1 year ago

Hi,

Is it possible to set CellTemplate of row header in flexGrid?

One column of row header is automatically created at construction, so simply this piece of code should work;

datagrid.RowHeaderColumns[0].CellTemplate = new DataTemplate(() =>
        {
        Label l = new Label() { Text = "TEST" };
        return l;
        });

but nothing happens in row header. Am i missing something?

Regards

Ender

arivoir commented 1 year ago

CellTemplate is not supported in the row-headers column. but you can remove that column and add your own (Notice you'll lose editing and validation error icons).

enkaradag commented 1 year ago

Ok. did it that way. Thank you