Current filter:
                                You should refresh the page.
                                We apologize for the inconvenience. Our ordering system and the support center may be offline for a few hours on Sunday, May 19 due to maintenance tasks.
                                0
                                  • Hello


                                    In the End-User Designer i want to create some controls for example a XRTable.

                                    I do it with this method, but then, I can't select the table in the EUD to change some properties.

                                    What can I do better?




                                    	
                                    [VB.NET]
                                    ... me.CreateAddressField(XrDesignMdiController1.ActiveDesignPanel.Report) ... Private Sub CreateAddressField(rep As ProcessReport) Dim xrTableAddress As New DevExpress.XtraReports.UI.XRTable() Dim xrTableRowAddressPos As New DevExpress.XtraReports.UI.XRTableRow() Dim xrTableCellAddress As New DevExpress.XtraReports.UI.XRTableCell() rep.ProcessHeader.Controls.Add(xrTableAddress) rep.ProcessHeader.Controls.Add(xrTableRowAddressPos) rep.ProcessHeader.Controls.Add(xrTableCellAddress) ' 'XrTableAddress ' xrTableAddress.LockedInUserDesigner = False xrTableAddress.BorderColor = System.Drawing.Color.Gainsboro xrTableAddress.BorderWidth = 0 xrTableAddress.Dpi = 254.0! xrTableAddress.LocationFloat = New DevExpress.Utils.PointFloat(318.6875!, 127.0!) xrTableAddress.Name = "XrTableAddress" xrTableAddress.Rows.AddRange(New DevExpress.XtraReports.UI.XRTableRow() {xrTableRowAddressPos}) xrTableAddress.SizeF = New System.Drawing.SizeF(595.3124!, 174.8367!) xrTableAddress.StylePriority.UseBorderColor = False xrTableAddress.StylePriority.UseBorderWidth = False ' 'XrTableRowAddressPos ' xrTableRowAddressPos.LockedInUserDesigner = False xrTableRowAddressPos.Cells.AddRange(New DevExpress.XtraReports.UI.XRTableCell() {xrTableCellAddress}) xrTableRowAddressPos.Dpi = 254.0! xrTableRowAddressPos.Name = "XrTableRowAddressPos" xrTableRowAddressPos.Weight = 1.0R ' 'XrTableCellAddress ' xrTableCellAddress.LockedInUserDesigner = False xrTableCellAddress.CanGrow = False xrTableCellAddress.Dpi = 254.0! xrTableCellAddress.Multiline = True xrTableCellAddress.Name = "XrTableCellAddress" xrTableCellAddress.Text = "bla bla" xrTableCellAddress.Weight = 3.0R End Sub


                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                Hi Stefan,

                                Thank you for your message.

                                We have already discussed a similar issue: How to enable editing of controls copied by code. Please review this ticket for additional information. We hope that you find this information helpful.

                                Thanks,
                                Elliot

                                • Stefan Bättig 08.03.2012

                                  Thanks Elliot!
                                  It works fine with DesignToolHelper.AddToContainer(host, ctrl)

                                  have a nice weekend
                                  stefan

                                • Thank you for your feedback. I am glad to hear that the issue has been resolved. Please contact us if you experience any further difficulties.

                                  P.S. Once your question has been resolved to your satisfaction, mark it as a Solution. Your question status will immediately become Closed.

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.