'Custom model for GtkColumnView (GTK4)

I have an interface to ODBC, SQlite and ORACLE. I keep the data in my recordsets which I can edit (deleteRow, editRow, insertRow, pushBackRow,...). I am trying now to implement editing of the data by GtkColumnView. In some cases I can have up to 100.000 entries so I thought that GtkColumnView should be the best choice. My problem, however, is that there is no example in plain C that implements GtkColumnView with custom data model. In some examples ui (xml) format is used. I need to have it programatically. Also, there is an example tha uses preimplemented models. However, copying to those models would take too much time. I just need an example for single selection and text based data renderer that would operate with my recordset. Any help would be appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source