WPF c1:DataGridComboBoxColumn DataView/DataTable Source

Posted by: sebastian-jn.k on 21 February 2023, 8:00 pm EST

    • Post Options:
    • Link

    Posted 21 February 2023, 8:00 pm EST

    hello,

    assembly versions 4.6.20222.770

    WPF c1:DataGridComboBoxColumn with DataView/DataTable Source

    problem:

    The content of the DataGridComboBoxColumn don’t refresh if the DataView changes.

    I excpect the same behavior like the default MS Datagrid.

    To understand, please enter a text in the label column of the right c1datagrid in the attached example.

    C1DataGridComboxSource.zip

    What i’m missing?

    greetings from germany

  • Posted 22 February 2023, 5:15 pm EST

    Hi,

    You can handle ListChanged event of DataView and refresh the DataGrid to resolve this issue.(see code snippet)

            private void SourceDataView_ListChanged(object sender, System.ComponentModel.ListChangedEventArgs e)
            {
                C1Datagrid.Refresh();
            }

    Please refer the attached modified sample for the same:C1DataGridComboxSource_Mod.zip

    Best Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels