locked
AspxGridview does have a definition for Row no extension method 'Rows' accepting a first argument of type AspxGridView could be found (are you missing a using directive or an assembly reference? RRS feed

  • Question

  • User1740219303 posted

    protected void GVDataTypeDetails_BeforePerformDataSelect(object sender, EventArgs e)
    {
    Int32 vDataType = Convert.ToInt32(((ASPxGridView)sender).GetMasterRowKeyValue());
    ASPxGridView vGridView = (ASPxGridView)sender;
    ASPxGridView vDetailTypeGrid = getDataTypeGrid((ASPxGridView)sender);
    string vPersonID = vDetailTypeGrid.GetMasterRowKeyValue().ToString();
    int rowCount = vGridView.Rows.count;
    if (vDataType == 1)
    {
    vGridView.DataSource = MainVM.MnSPaDbContext.SLP_PERSONADDRESS(vPersonID).ToList();
    //DataSet ds = (DataSet)vGridView.DataSource;
    //int rowCount = ds.Tables[0].Rows.Count;

    Label lblFooter = vGridView.FindControl("lblFooter") as Label;
    rowCount = vGridView.Rows.Count;
    if (rowCount == 0)
    {
    lblFooter.Text = "No Address Found";
    }

    }

    The is my code. What should i do to correct this error?

    Sunday, August 21, 2016 11:59 AM

All replies