I know on grid_ItemDataBound can use
e.Item.DataItem to get the collection.
GridDataItem dataItem1 = e.Item as GridDataItem;
dataItem1["fieldname"] to get the field name.
Is it a way to get the collection just based on dataItems1?
I have a dropdown inside grid cell, on the dropdown click, I like to pass the row collection to the dropdown click. How can I do this?
On mydropdown_SelectedIndexChanged I used below:
DropDownList ddl = (DropDownList)sender;
GridDataItem item = (ddl.Parent as GridTableCell).Parent as GridDataItem;
to pass grid field to mydropdown_SelectedIndexChanged
this way, I need to put all the field1. field 2 in the grid (maybe hidden column) in order to let mydropdown_SelectedIndexChanged access the grid data, is there a way to send the whole grid row collection to mydropdown_SelectedIndexChanged ? something like (Myrowcollection)e.Item.DataItem that I did on ItemDataBound,but don't how to get the collection under mydropdown_SelectedIndexChanged?