Saturday, 4 June 2016

Find Controls of System Defined Objects like textbox,label

        DropDownList ddllegername = new DropDownList();
        ddllegername = (DropDownList)sender;
        GridViewRow row = (GridViewRow)ddllegername.NamingContainer;
        Label lblLedgerCode = row.Cells[0].FindControl("lblLedgerCode") as Label;

No comments:

Post a Comment