How can I change the labels for row and column headers?

You can apply a value to column nCol by calling SetStyleRange( ):

SetStyleRange(CGXRange(0, nCol), CGXStyle( ).SetValue(string));

or to row nRow by calling

SetStyleRange(CGXRange(nRow, 0), CGXStyle( ).SetValue(string));