Simon, I have already that one, I did not include in my code.I only posted is in the datagrid that will get one column and its row because i want to print per column inside my datagrid. from this put revdb_columnnames(sCursorID) into tColumnNames repeat for each item tColumnName in tColumnNames put ...