Jump to content
uniGUI Discussion Forums

csaszko

uniGUI Subscriber
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About csaszko

  • Rank
    Newbie
  1. csaszko

    Different Editor in Same Column of DBGrid

    I mean like in the vcl code : with variable_edit do begin Left := Rect.Left + DBGrid1.Left + 2; Top := Rect.Top + DBGrid1.Top + 2; Width := Column.Width; Height := Rect.Bottom - Rect.Top; << in this case I get the cell canvas rect and can my control cover acutal cell whole canvas. Like in unidbgrid editor when is showing of the given control you cover whole canvas of that cell, I tried to get editor's control(edit,combobox) left, top and with.. but didn't work for me, for example only got the original edit's witdh(as placed on form in design mode) , not what dbgrid is showing runtime.
  2. csaszko

    Different Editor in Same Column of DBGrid

    Yes finally my solution was that what you mentioned. Aniway can i get somehow rect of the actual cell? Thanks
  3. csaszko

    Different Editor in Same Column of DBGrid

    Hi, Do you have any solution for this problem? I need to use different control in a same column (edit,combobox, datetimepticker) Or I have a solution for vcl dbgrid which is perfect for me, but not working with unidbgrid (or i dont know how to archieve it) my code for vcl procedure TForm128.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); if (gdFocused in State) then begin if (Column.Field.FieldName = 'variable') then begin if (ZQuery2.FieldByName('variable_type').AsString = 'text') then begin variable_datumpicker.Visible := false; variable_combobox.Visible := false; with variable_edit do begin Left := Rect.Left + DBGrid1.Left + 2; Top := Rect.Top + DBGrid1.Top + 2; Width := Column.Width; Height := Rect.Bottom - Rect.Top; variable_edit.Text := ZQuery2.FieldByName('variable_value').AsString; Visible := true; end; end; etc... please help me Thanks
×