Skip to content

Column Header is not created when column is created runtime #70

@enkaradag

Description

@enkaradag

Describe the bug
Column Header is not created when column is created runtime such as:

`        DataGridColumn col = new DataGridColumn() {
             Title = "Data Column1",
             PropertyName = "DATACOL1",
             Width = 200,
             HorizontalContentAlignment = LayoutOptions.Start
             };
        grd.Columns.Add(col);
`

To Reproduce
DataGrid grd=new DataGrid(); DataGridColumn col = new DataGridColumn() { Title = "Data Column1", PropertyName = "DATACOL1", Width = 200, HorizontalContentAlignment = LayoutOptions.Start };

Expected behavior
Header should be created with column outside xaml.

Desktop (please complete the following information):

  • OS: Maui Windows,Android
  • .net 7

Additional context
Also changing Column Width doesn't change Header Width

Regards
Ender

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions