New Posts New Posts RSS Feed: Help with a reference error for ASPxGridView please.
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Help with a reference error for ASPxGridView please.

 Post Reply Post Reply
Author
mel View Drop Down
Newbie
Newbie


Joined: 07-Aug-2008
Posts: 1
Post Options Post Options   Quote mel Quote  Post ReplyReply Direct Link To This Post Topic: Help with a reference error for ASPxGridView please.
    Posted: 07-Aug-2008 at 11:34pm
Hi ,
i have the following code
 
public int PreviousApproversColumn = 11;

ShowOrHideApprovers(ASPxGridView1, UserContext.ProfileData, "INV", PreviousApproversColumn);

 

private void ShowOrHideApprovers(ASPxGridView grid, ProfileData data, string gridType, int previousApproversColumn)
        {
        
            if (data.Profile.Count > 0)
            {
                if (gridType == "REQ")
                {
                    if (data.Profile[0].PreviousReqApprovers == "Y")                                            
                        grid.Columns[previousApproversColumn].Visible = true;
                }
                else if (gridType == "INV")
                {
                    if (data.Profile[0].PreviousInvApprovers == "Y")                       
                        grid.Columns[previousApproversColumn].Visible = true;
                }
            }
        }

BUT i get the following error: 

Error 2 The type 'DevExpress.Utils.Design.ICaptionSupport' is defined in an assembly that is not referenced. You must add a reference to assembly 'DevExpress.Data.v7.2, Version=7.2.5.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1'. 

Would anyone know why this is happening ?
 
thanks

mel

Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 08-Aug-2008 at 7:48am
The most likely cure for your problem is to run the Assembly Binding Redirector (one of the tools in IdeaBlade DevForce).
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down