kappa
  • kappa
  • Member Topic Starter
2020-07-04T11:00:06Z
Hi 10Tec,

I am new to igrid and using it a vb.net application.
This is a very simple question - How do I get the value from the first cell in a selected row ?

Thanks in advance.

Kappa
Igor/10Tec
2020-07-06T12:46:13Z
If you are not using row mode, it should be an expression like iGrid1.Cells(iGrid1.CurCell.RowIndex, 1).Value.

In the general case, you should also check whether iGrid1.CurCell is not Nothing to avoid exceptions when the grid does not have the current cell.
kappa
  • kappa
  • Member Topic Starter
2020-07-06T13:03:00Z
Thanks for your reply Igor,
I am using row mode.
I am an old Active x user of igrid. In the active x grid i could use Cells(lrow,lcol) in a selected row.
I would like to only get the value of 1 cell in a selected row.


Thanks.
Igor/10Tec
2020-07-06T15:33:21Z
In row mode, you can use iGrid1.CurRow.Index to know the index of the currently selected row.
kappa
  • kappa
  • Member Topic Starter
2020-07-07T11:38:22Z
Thank you Igor,

That worked great.