Jump to content


Photo

Unistringgrid width fixed row , col

stringgrid

  • Please log in to reply
5 replies to this topic

#1 erdal

erdal

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 52 posts

Posted 24 July 2014 - 10:30 AM

Picture link . http://i58.tinypic.com/2wp5rg9.jpg
pls help me.


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4540 posts

Posted 24 July 2014 - 11:14 AM

Hi erdal.
 
Can you clarify?
 
Sincerely.

  • 0

#3 erdal

erdal

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 52 posts

Posted 24 July 2014 - 12:38 PM

stringgrid..... how we set the length of the column on the screen.
  • 0

#4 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4540 posts

Posted 24 July 2014 - 12:50 PM

try:

function reconfigure(sender, store, columns, oldStore, the, eOpts)
{
  columns[1].setWidth(200);
  columns[2].setWidth(500);
}

 


  • 1

#5 erdal

erdal

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 52 posts

Posted 24 July 2014 - 01:08 PM

fine thanks .
  • 0

#6 skafy

skafy

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 156 posts

Posted 07 January 2016 - 12:33 AM

How to set width to automaticly fit the StringGrid.

 

I tried function witch worked for me on DBGrid component but it doesn't work here.

 

function columnresize(ct, column, width, eOpts)
{
  if (column.fedit) {
    column.fedit.setWidth(width - 2)
  }
}

 

please help.

 

Best regards


  • 0





Also tagged with one or more of these keywords: stringgrid

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users