yesterday i Encountered a problem again.
when i click the datagridview,i try to assign value to first cell. but it alerted to me that nullpoint error.at first, i thought the problem because of i clicked a no-exist row,but the api decided can't get the index of the selected-row.
finally ,I succeeded in solving the problem. the reason is that although i design the first widget is a checkbox and it's default value is false,the software still report the error if the datagridview's datatable have not the corresponding value.