L
Lee C.
I can access the dg's DataKeys values (table primary key values) from
events raised by objects outside of the dg. For example, from a
Button1_Click, where the button is not in the dg, but elsewhere on the
page. I cannot access the dg's DataKeys values from events raised by
objects inside of the dg (Edit button, Delete button, etc.), which is
where I really need to. I get, "Index was out of range. Must be
non-negative and less than the size of the collection. Parameter name:
index". I am hard coding the index, for now, and that doesn't help.
If I check the DataGrid1.DataKeys.Count, logically, from events raised
within the dg, Count = 0, and from outside the dg, Count = 6.
I just don't get this. Can someone please explain?
Thanks,
Lee
events raised by objects outside of the dg. For example, from a
Button1_Click, where the button is not in the dg, but elsewhere on the
page. I cannot access the dg's DataKeys values from events raised by
objects inside of the dg (Edit button, Delete button, etc.), which is
where I really need to. I get, "Index was out of range. Must be
non-negative and less than the size of the collection. Parameter name:
index". I am hard coding the index, for now, and that doesn't help.
If I check the DataGrid1.DataKeys.Count, logically, from events raised
within the dg, Count = 0, and from outside the dg, Count = 6.
I just don't get this. Can someone please explain?
Thanks,
Lee