Hi all.
I have a radgrid that binds to a entity. I have a partial class that does some calculations, example field being 'mycount'. This field is shown correctly in the grid, however when a certain property updates I want this value to update. However when I go back to the grid the old value is there, until I navigate around the system and the context refreshes itself. Thus it field "x" changes I need the value of "mycount" to be updated. Could someone throw some light on this;
I have a radgrid that binds to a entity. I have a partial class that does some calculations, example field being 'mycount'. This field is shown correctly in the grid, however when a certain property updates I want this value to update. However when I go back to the grid the old value is there, until I navigate around the system and the context refreshes itself. Thus it field "x" changes I need the value of "mycount" to be updated. Could someone throw some light on this;
[global::System.Runtime.Serialization.DataMemberAttribute()]
public int mycount
{
get
{
try
{
return this.MyChildEntity.Count;
}
catch (Exception ex)
{
return 0;
}
}
}