View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001428 | JEDI VCL | 00 JVCL Components | public | 2004-03-05 00:40 | 2004-04-22 02:56 |
| Reporter | xerkan | Assigned To | user72 | ||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0001428: Error in ShowColumnsDialog of tjvdbgrid | ||||
| Description | If in "columns editor" of a dbgrid there are not selected all the fields of which it consists, on having called to the procedure this ShowColumnsDialog, the data base shows an error of the type list index out of bounds. Also I would like that the fields, it was showing them in the order that they appear in the dbgrid instead of in the order in which they are in the table | ||||
| Additional Information | Si en el "columns editor" de un dbgrid no se seleccionan todos los campos del los que consta la base de datos al llamar al procedimiento ShowColumnsDialog este muestra un error del tipo list index out of bounds. Tambien me gustaria que los campos, los mostrara en el orden que aparecen en el dbgrid en vez de en el orden en el que estan en el la tabla | ||||
| Tags | No tags attached. | ||||
|
|
Remove the List Index out of bounds (in JvDBGridSelectColumnForm, changes in bold): procedure TfrmSelectColumn.FormActivate(Sender: TObject); var i, j: Integer; lColumn: TColumn; begin if Assigned(FJvDBGrid) then with FJvDBGrid do begin clbList.Items.Clear; if (FSelectColumn = scDatabase) and Assigned(DataSource) and Assigned(DataSource.Dataset) then begin with DataSource.Dataset do for i := 0 to FieldCount - 1 do begin lColumn := GetColumn(Fields[i]); if Assigned(lColumn) then begin j := clbList.Items.AddObject(Fields[i].DisplayLabel, TObject(lColumn.Index)); clbList.Checked[j] := lColumn.Visible and Fields[i].Visible; end; end; end else begin for i := 0 to Columns.Count - 1 do begin j := clbList.Items.AddObject(FJvDBGrid.Columns[i].FieldName, TObject(i)); clbList.Checked[j] := FJvDBGrid.Columns[i].Visible; end; end; if clbList.Items.Count > 0 then clbList.ItemIndex := 0; end; ResizeForm; end; To show items in grid order, change SelectColumn to scGrid |
|
|
Fixed in CVS |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2004-03-05 00:40 | xerkan | New Issue | |
| 2004-03-05 02:03 |
|
Note Added: 0003217 | |
| 2004-03-05 02:05 |
|
Status | new => assigned |
| 2004-03-05 02:05 |
|
Assigned To | => user72 |
| 2004-03-07 13:53 |
|
Status | assigned => resolved |
| 2004-03-07 13:53 |
|
Resolution | open => fixed |
| 2004-03-07 13:53 |
|
Note Added: 0003253 | |
| 2004-04-22 02:56 |
|
Status | resolved => closed |