開啟時直接進入新增模式

openForm('#JQDialog2',
rowData, "inserted", 'dialog');



rowData是當前選擇的dataGridrow,新增傳null進去就可以。