From the question,
'Insert Grid into dialog control
oDialogControl.addControl("MyGrid", oGridControl)
oGridControl.setPosSize(15, 50, 730, 280, com.sun.star.awt.PosSize.POSSIZE)
How can I change grid width from 730
to iDlgWidth -15 -15
(15 = left marging & right margin) & grid height from 280
to iDlgHeight - 15 - 15
(15 = top marging & bottom margin) ?
I have tried only
oGridControl.setPosSize(15, 50, iDlgWidth -15 -15, 280, com.sun.star.awt.PosSize.POSSIZE)
.
It was not fit.