As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at firstname.lastname@example.org and provide your corporate email address, company, and name.
Can I chime in?? The main selling point of the JS grid is that it doesn't require an Active-X control so it can be used on other browsers besides IE. One issue that HAS come up is that when you embed HTML Code into the grid cells, something that could not be done in the previous grid, there are some issues on non-IE browsers. Some of its features are:
Click on a cell and enter edit mode: Form.Grid.OneClickEdit(true); // false to turn off Move cursor to a cell in the grid: Form.Grid.SetCellFocus(col, row) ; Dynamically change the protection of a cell Form.Grid.CellSetReadOnly(col, row , true); // false Dyamically set the value of a cell Form1.Grid1.CellSetText() CellGetReadOnly(col, row, editable) CellSetReadOnly(col, row) CellGetText(col, row) CellSetText(col, row, text) GetCurrentColumn() GetCurrentRow() GetCurrentColumn() GetNumberColumns() GetNumberRows() CellSetTextColor(col, row, color) Form1.Grid1.CellSetTextColor(1,1,”rgb(0,0,255)”); CellGetTextColor(col, row) CellSetBackColor(col, row, color) Form1.Grid1.CellSetBackColor(1,1,”rgb(0,0,255)”); CellGetBackColor(col, row) ColumnSetContentType(col, contentType) contentType: 0 – Text 1 – HTML 2 - Image ex. Form1.Grid1.ColumnSetContentType(1,0); CellSetFont(col, row, font) CellSetFontSize(col, row, fontSize) CellSetFontStyle(col, row, style)
We've also added function JSGridOnload. You can use that function to preset the grid before the form is displayed. In 7.702 we added the content type option into the column detail screen, much like it is in the HTMLTable. This makes adding Images and HTML Objects to the cells much easier.
Posts: 663 | Location: New York | Registered: May 08, 2003