>>>>Hi,
>>>>
>>>>I've got an ASP.NET form with an mmGridView showing the many side of a one to many relationship between two tables. When a value in this grid is changed to one that causes a business rule to fail the error icon does not get displayed in the grid. How can I achieve this?
>>>
>>>Am I doing something out of the norm here that no one has encountered this?
>>
>>Hi Frank,
>>
>>I don't think so and I have had others with this challenge. To be honest, editing in a grid can be complicated real easy. I rarely do it only because I don't like dealing with editing in grids. I prefer to provide editing forms. How do you have your in place editing setup? Are you using edit templates?
>>Tim
>
>So you display a separate web page when the user edits each row of the many side of a one to many relationship?.
Not necessarily. Since I am using Telerik, I can use a User Control form within the grid. Check these out.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx>
>Yes I am using item and edit item templates in the grid
Then if the save fails are you preventing the edit mode from finishing?
protected void grdStuff_UpdateCommand(object source, GridCommandEventArgs e)
{
if(this.Save(this.oBizObj, dsMyData) == mmSaveDataResult.RulesBroken)
{
e.Canceled = true;
e.Item.Edit = true;
}
this.grdStuff.ItemIndex = -1;
}
Timothy Bryan