参考代码
Dim rgd As WinForm.RecordGrid = e.Form.Controls("RecordGrid1")rgd.Columns = "第一列|第二列"Dim brgd = rgd.BaseControlbrgd.VisualStyle = 4rgd.Table = Tables("表A") '指定绑定表rgd.Build() '重新生成记录窗
Dim h As Integer = rgd.Height / brgd.Rows.countFor i As Integer = 0 To brgd.Rows.count-1 brgd.Rows(i).height = hNext