Telerik strives to constantly improve its support services but it is essential to have full information to supply precise replies. If we do not have enough details we will not be able to properly address your inquiry and we will ask for further info. The extra loop is sure to slow down the time it takes to resolve your problem, and subsequently the further development of your project.
It is vital that you follow these guidelines in order to receive an accurate response:
ENJOY!!!
Best Wishes,
The Telerik team
void radGridViewSearchResults_RowFormatting(object sender, RowFormattingEventArgs e)
{
GridViewRowInfo gvri = e.RowElement.RowInfo;
myobject obj = gvri.DataBoundItem as myobject;
if (obj.IsDeleted)
{
gvri.IsVisible = false;
return;
}
if (obj.IsModified || obj.IsNew)
gvri.VisualElement.Font = new Font(gvri.VisualElement.Font.FontFamily, gvri.VisualElement.Font.SizeInPoints, FontStyle.Italic);
if (obj.IsOnError)
gvri.VisualElement.BackColor = Color.Red;
}
The problem is that the rows that should be hidden are still showing up and the ones that should be in red are not?
I've check the state of my objects and they are correct.
I've also remarked that the RowFormatting event is called tice for each item?
What is the correct way of hidding a row from the grid and customize its style?
thanks