Andew
  • Andew
  • Newbie Topic Starter
2015-09-21T14:32:21Z
How do I obtain alignment of cell contents centered vertically ?
Igor/10Tec
2015-09-21T15:14:40Z
iGCell.EffectiveTextAlign?
Andew
  • Andew
  • Newbie Topic Starter
2015-09-22T07:14:32Z
Did tou mean to set EffectiveTextAlign this way? The property is read-only !


For i = 0 To IGrid2.Rows.Count - 1
     IGrid2.Rows(i).Tag = _dtInput.Rows(i)

     For Each cell As TenTec.Windows.iGridLib.iGCell In IGrid2.Rows(i).Cells
          cell.EffectiveTextAlign = TenTec.Windows.iGridLib.iGContentAlignment.MiddleLeft
     Next
Next
Andew
  • Andew
  • Newbie Topic Starter
2015-09-22T07:19:13Z
I even tried to set CellStyle of DeafultRow but it doesn't work


Dim _cellStyle As TenTec.Windows.iGridLib.iGCellStyle = New TenTec.Windows.iGridLib.iGCellStyle()
_cellStyle.EmptyStringAs = TenTec.Windows.iGridLib.iGEmptyStringAs.DBNull
_cellStyle.TextAlign = TenTec.Windows.iGridLib.iGContentAlignment.MiddleLeft

IGrid2.DefaultRow.CellStyle = _cellStyle
Igor/10Tec
2015-09-22T07:54:31Z
You wrote "obtain" in your very first post, which means "get", "acquire" or "retrieve" ;)

Do you need to set it?

And if it does not work, prepare and send us a sample that demonstrates all issues we have recently discussed.

We need a sample to understand why it may not work on your side.
Andew
  • Andew
  • Newbie Topic Starter
2015-09-22T08:03:03Z
I found mistake on my side already. Thanks