support datagrid row/cell index and fix some issue of if
finetune datagrid api