Text box in data grid

I am defining a new column in a datagrid so as to add a text box

new_columns = [
            {
                "id": "col_text",
                "title": "Notes",
                "data_key": "user_note",
                "width": 150
            },

In the row template I create and add the text box

        self.tb = TextBox(placeholder="Type something...")
        self.tb.set_event_handler("change", self.textbox_change_handler)
        self.tb.horizontal_alignment = "right"
        
        # Add it to the panel
        #id or key? 
       self.add_component(self.tb, column="col_text")

The textbox shows up in the datagrid on Run, but it is below the existing columns, ignoring the width specification and the reference to the column key or id.
How do I fix this? Thx.

I see no reference to this variable in the code you listed. Is this definition just sitting there in this variable? If so, your data grid won’t know anything about it.

Edit
You may want some additional code like

grid.columns = grid.columns + new_columns