This is a migrated thread and some comments may be shown as answers.

Setting properties in builder doesn't work, setting in code does

1 Answer 65 Views
GridView
This is a migrated thread and some comments may be shown as answers.
tcl4p
Top achievements
Rank 1
tcl4p asked on 25 Dec 2009, 10:46 PM
I have an issue with my grid.  It seems when I set properties using the property builder the values do not appear when the program is run even though the changes appear in the preview pane.  That said, I can set the same properties in code, run the program and they work.
Can anyone explain why?

Thanks,
Tom

Here's a snippet of code I used.  The grid is bound to a stored procedure, which I refresh after passing in a new DeptID.  The grid sits inside a panel, which is set to visible after the grid is updated.
 clsDept.DeptID = DeptID
            rc = clsDept.GetTruckStatusByStation()
            Me.grdVehicle.DataSource = clsDept.TT
            Me.grdVehicle.MasterGridViewTemplate.AllowAddNewRow = False
            Me.grdVehicle.ReadOnly = True
            Me.grdVehicle.Columns(0).IsVisible = False
            Me.grdVehicle.Columns(1).HeaderText = "Vehicle"
            Me.grdVehicle.Columns(3).IsVisible = False
            Me.grdVehicle.Columns(4).FormatString = "{0:MM/dd/yyyy}"
            Me.pnlMain.Visible = True

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 28 Dec 2009, 08:31 AM
Hi tcl4p,

Thank you for writing. We are encountering some issues related to the code serialization.

Do your settings disappear when you open the property builder a second time? If they do not disappear try opening it and closing it (with the OK button) a few times.

Please write again if you need further assistance.

Greetings,

Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
tcl4p
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or