Hi
I have strange problem.
I put a radGridView and bind it to collection.
2 added Columns need to format so I handle "RowFormating" and format them there.
another thing is that i want to do some actions when a row Double clicked so i add a delegate there.
here is some code :
this code work correctly but I deed some cosmetic changes and now it throw that exception:"Collection was modified; enumeration operation may not execute."
if I keep going it's render the grid very tight to left, if I change the general size of the window it's automatically render correct...
any ideas
thanks.
Adiel
I have strange problem.
I put a radGridView and bind it to collection.
2 added Columns need to format so I handle "RowFormating" and format them there.
another thing is that i want to do some actions when a row Double clicked so i add a delegate there.
here is some code :
void GrvUsers_RowFormatting(object sender, RowFormattingEventArgs e) | |
{ | |
e.RowElement.RowInfo.Cells["Disable"].Value = ((bool)(e.RowElement.RowInfo.DataBoundItem as User).Claims["Disable"]) ? "Disable" : "Enable"; | |
e.RowElement.RowInfo.Cells["Id"].Value = (e.RowElement.RowInfo.DataBoundItem as People).Claims["Id"]; | |
e.RowElement.DoubleClick += delegate(object sender1, EventArgs e1) | |
{ | |
_presenter.EditUserAccunt((e.RowElement.RowInfo.DataBoundItem as User).UserName); | |
}; | |
} |
this code work correctly but I deed some cosmetic changes and now it throw that exception:"Collection was modified; enumeration operation may not execute."
if I keep going it's render the grid very tight to left, if I change the general size of the window it's automatically render correct...
any ideas
thanks.
Adiel