Sparse matrix multiplication row-major problem with cusparse

I need to multiply a sparse matrix A with a dense matrix B, the result is stored in a huge-size dense matrix C. From the example code I find that C is column-major. However, in my problem C is always row-major. So is it possible to use some method to get row-major result directly?

As far as I know, this can be done when A and B are both dense,
C=AB is transformed into C^T=(AB)^T=B^T*A^T. In this way, A, B and C could be row-major.

Thanks a lot!