Hello,
I'm trying to set the grid width of the child table but cannot find the property/method to do so?
I've set the outer grid width fine I think.
and then try to set the inner (child) grid on the on gridview formatting event:-
Attached is the screen print of the output and what I'm trying to achieve for clarity.
Many thanks
Terry
I'm trying to set the grid width of the child table but cannot find the property/method to do so?
I've set the outer grid width fine I think.
Dim OrderLinesTemplate As New GridViewTemplate OrderLinesTemplate.AllowAddNewRow = False OrderLinesTemplate.DataSource = myOrderLines OrderLinesTemplate.Columns(0).Width = 100 OrderLinesTemplate.Columns(1).Width = 200 OrderLinesTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.None Me.RadGridView1.MasterTemplate.Templates.Add(OrderLinesTemplate)and then try to set the inner (child) grid on the on gridview formatting event:-
Private Sub RadGridView1_ViewCellFormatting(sender As Object, e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles RadGridView1.ViewCellFormatting If TypeOf e.CellElement Is GridDetailViewCellElement Then e.CellElement.BorderWidth = 10 e.CellElement.AutoSize = False e.CellElement.Size = New System.Drawing.Size(350, 150) End If End SubAttached is the screen print of the output and what I'm trying to achieve for clarity.
Many thanks
Terry