J
Jim Heavey
Hello, Coming from VB, accessing cells is a little different in C#.
If I have a datatable, I see the ItemArray propery, which gives you an
array of the items in a row (right?), but it does not allow you to access
the individual cell. Do I have to get the ItemArray and access the
individual cell from that, or is there another way. In VB there was the
"item" property.
dt.rows[myRow].item[2] = "Fred"
If I have a Datarow is there a property that tells me the index of that row
in a DataTable?
Likewise, if I have a DataRowView Row, is there a property which tells me
the index of that row?
Thanks in advance for your assistance!!!!
If I have a datatable, I see the ItemArray propery, which gives you an
array of the items in a row (right?), but it does not allow you to access
the individual cell. Do I have to get the ItemArray and access the
individual cell from that, or is there another way. In VB there was the
"item" property.
dt.rows[myRow].item[2] = "Fred"
If I have a Datarow is there a property that tells me the index of that row
in a DataTable?
Likewise, if I have a DataRowView Row, is there a property which tells me
the index of that row?
Thanks in advance for your assistance!!!!