判断数据窗口datawindow哪行哪列被修改过

dwitemstatus dis
long i,j,col_count
col_count = long(dw_1.object.datawindow.column.count)

for i=1 to dw_1.rowcount( )
	for j=1 to col_count
		dis=dw_1.getitemstatus( i, j,primary!)
		if dis=datamodified! then 
			messagebox(string(i)+','+string(j),'mod')
		end if
	next
next 

你可能感兴趣的:(J#)