Skip to content

Dropdowncheckboxes saplin controls inside gridview

mary jean ligas

mary jean ligas

Asked Oct 9, 2012, 12:52 AM EDT4 answers
Share
LinkedInX
Hello Everyone, I am new to this programing Language..want to ask if how to call the ID of dropdowncheckboxes inside gridview in code behind??

heres my code:

<asp:GridView ID="sampleGrid" runat="server"
             OnRowDataBound="sampleGrid_RowDataBound">
             <Columns>
                <asp:TemplateField>
                   <ItemTemplate>
                        <asp:DropDownCheckBoxes runat="server" ID="ddcRoleGrid"
                        AddJQueryReference="True" UseButtons="True" UseSelectAllNode="True">
                        <Style2 SelectBoxWidth="300" DropDownBoxBoxWidth="200" DropDownBoxBoxHeight="80" /> 
                        <Texts SelectBoxCaption="Sample"/>
                        </asp:DropDownCheckBoxes>
                   </ItemTemplate>
                </asp:TemplateField>
            </Columns>
         </asp:GridView>


PLEASE HELP ME! THANKS A LOT

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    by using name space as

            using Saplin.Controls;

    and find the id as below code..

    DropDownCheckBoxes ctrl_ddlStudentBatch = (DropDownCheckBoxes)e.Row.FindControl("ddcbStudentBatches");


    ddlStudentBatch .Id


    Regards,
    Honey.
    0
  • 0
    i want to use onclick method of this control and add one javascript when chekbox cheked his text display in lable
    0
  • 0
    javascript not working inside gridview saplin control require server side event so create on change event on serverside
    0
  • 1 short reply
    • 0
      Nice question
      0