Home › Forums › WinForms controls › Xceed Grid for WinForms › Extending rows in both master and detail grid to fit the space provided › Reply To: Extending rows in both master and detail grid to fit the space provided
i’ve got a solution that works with constants but want to make it more fool proof. I compare the widths to gridControl.Width and I have to adjust the mail headers by add 21 before comparing and deciding how much to extend the dummy colum. I would like to not have to code 21 but calculate the value from the control.
Also, for the first detail grid I have to use an adjustment factor of 44. The detail grid has a SideMargin.Width of 17 so I would think that 21 + 17 = 41 would be that value for that one but 44 is what works.
How should I be calculating these?
Imported from legacy forums. Posted by Bernard (had 231 views)