ALCME
  • ALCME
  • Newbie Topic Starter
2020-01-03T19:21:18Z
I attempted to set column width for text width but it doesn't want to work?

Private Sub iGrid1_TextEditKeyPress(ByVal lRow As Long, ByVal lCol As Long, CharCode As Long)
iGrid1.ColWidth(lCol) = TextWidth(iGrid1.CellText(lRow, lCol))
End Sub

It is making column width like the width of the grid.

Igor/10Tec
2020-01-06T08:07:57Z
What the TextWidth function does? Does it return width in pixels iGrid expects?

And I think you can't change column width from the TextEditKeyPress event as any column width change operation finished editing.
ALCME
  • ALCME
  • Newbie Topic Starter
2020-01-07T16:40:19Z
What I am trying to do is make a flow panel functionality by text edit cells resizing column width ..

If the form is changed to pixels any cell edit causes the edit completion but the column resizes ..

Doesn't seem an appropriate way to do this after trying a few different methods with cell edit ..
Users browsing this topic