Alexander,
Because the CGGrid is so capable and complicated, I have implemented inheritance to configure the CGGrid with defaults on how I use typically use it. This makes it very easy to immediately start implementing business rules. However in this case, which is not typical my defaults are causing issues. I confirmed this by removing the defaults and confirming the dynamic creation of cell values works.
Please examine the following defaults and indicate which one(s) would cause the issue.
- Code: Select all
(aObject as TIWCGJQGrid).JQGridOptions.SelectTopRowOnLoad := false;
(aObject as TIWCGJQGrid).JQGridOptions.AutoWidth := True;
(aObject as TIWCGJQGrid).JQGridOptions.AltRows := True;
(aObject as TIWCGJQGrid).JQGridOptions.AutoRowNum := false;
(aObject as TIWCGJQGrid).JQGridOptions.RowNumbers := True;
(aObject as TIWCGJQGrid).JQGridOptions.ShrinkToFit := True;
(aObject as TIWCGJQGrid).JQGridOptions.HeaderTitles := True;
(aObject as TIWCGJQGrid).JQGridOptions.PagerVisible := True;
(aObject as TIWCGJQGrid).JQGridOptions.TopPager := True;
(aObject as TIWCGJQGrid).JQGridOptions.GridView := True;
(aObject as TIWCGJQGrid).JQGridOptions.RowNum := 40;
(aObject as TIWCGJQGrid).JQGridColumnChooser.MultiSelectDlg := True;
(aObject as TIWCGJQGrid).JQGridNav.CloneToTop := True;
(aObject as TIWCGJQGrid).JQGridNav.Add := false;
(aObject as TIWCGJQGrid).JQGridNav.Edit := false;
(aObject as TIWCGJQGrid).JQGridNav.Del := false;
(aObject as TIWCGJQGrid).JQGridNav.Refresh := false;
(aObject as TIWCGJQGrid).JQGridNav.Search := True;
(aObject as TIWCGJQGrid).JQGridNav.View := True;
(aObject as TIWCGJQGrid).JQGridPersist.Enabled := True;
(aObject as TIWCGJQGrid).JQGridToolbarSearch.Active := True;
Thank you for the timely support.