Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to customize DBAdvGrid Columns in order to display data from database?
    primarykey
    data
    text
    <p>I am trying to display data from database table into DBAdvGrid so that first column will show only checkbox, while other 3 columns will show label, description and image field from database table. I am using UniConnection, UniQuery, UniDatasource components to display data. I am setting UniConnection Database properties via code as I can give relative path of the database rather than full path. At object inspector it accepts only fiull path of database.</p> <p>My code is as follows At FormCreate event</p> <pre><code> filepath1 := ExtractFilePath(Application.ExeName); UniConnection1.Database := filepath1+'empdata.s3db'; UniConnection1.Connected := True; UniQuery1.SQL.Text := 'Select '', label, description, image from emp'; UniQuery1.Open; DBAdvGrid1.Columns[0].FieldName := ''; DBAdvGrid1.Columns[2].FieldName := 'label'; DBAdvGrid1.Columns[3].FieldName := 'description'; DBAdvGrid1.Columns[4].FieldName := 'image'; </code></pre> <p>The above code connect and display data successfully but problem is with displaying data at DBAdvGrid as I want first column to display only checkbox (no data from DB). At DBAdvGrid I cannot set field name of particular column through object inspector as it is connecting to the database through code with by extracting path.</p> <p>I have set first column of <code>DBAdvGrid</code> editor type property to the <code>edDataCheckBox</code> so that it would display checkbox in first column but it is getting overlapped by label data, similarly at second column it is showing 'description' and at 3rd column image.</p> <p>How to customize it via code so that it would show </p> <pre><code>1st column - No Data 2nd column - label 3rd column - description 4th column - image </code></pre> <p>What I am getting as</p> <pre><code>1st column - label overlapped with checkbox 2nd column - description 3rd column - image {MEMO} 4th column - </code></pre> <p>How to sort out this problem ?</p> <p><img src="https://i.stack.imgur.com/G8q8K.jpg" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload