DataGrid Toggle Column Editing for Insert vs. Edit

Forgive me if this has already been asked, but I've searched the forums and can't find anything about it.

Is it possible in the to be able to toggle whether or not a column is editable based on the current CRUD operation? I want to be able to edit a column value when Inserting, but to leave that column uneditable when Editing. Does the DataGrid discern between the two operations, or is there a way to disable column editing based on certain conditions?

Hi @sigsegv,

Since the DataGrid insert/edit is not built-in (there are no default buttons for edit and insert but you define them in templates or outside of the grid) you can control when what will be visible or not. Check this demo for more info:

Hi enchev, this is what I thought based on the example code but I wanted to confirm that this was the case. Looks like I'll have to get creative. Thank you!