M
Moondog
I am referencing a datagrid item like this:
strItemNo = grdItems.Item(grdItems.CurrentRowIndex(), 0)
The Item Number is in the first column; column 0. It works fine
except this is not a very good programming practice. What if someday
someone decides to move the "item number" column to the fourth or
fifth position?
I'm looking for a way to reference the column index using the column
name, so I could write the statement something like this:
strItemNo = grdItems.Item(grdItems.CurrentRowIndex(),
grdItems.Column("Item Number"))
That way it doesn't matter what position the "Item Number" column is
in, the line will still work. Is there a way to do this?
Thanks,
Dominic Isaia
(e-mail address removed)
strItemNo = grdItems.Item(grdItems.CurrentRowIndex(), 0)
The Item Number is in the first column; column 0. It works fine
except this is not a very good programming practice. What if someday
someone decides to move the "item number" column to the fourth or
fifth position?
I'm looking for a way to reference the column index using the column
name, so I could write the statement something like this:
strItemNo = grdItems.Item(grdItems.CurrentRowIndex(),
grdItems.Column("Item Number"))
That way it doesn't matter what position the "Item Number" column is
in, the line will still work. Is there a way to do this?
Thanks,
Dominic Isaia
(e-mail address removed)