Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to make gridviews one row selctable at a time and there should be one button at the bottom of popup which will take that sected records

XML
<dx:ASPxPopupControl ID="pcPendingApprovals" runat="server" RenderMode="Lightweight" ClientInstanceName="pcPendingApprovals"
    CloseAction="CloseButton" Modal="true" ShowCloseButton="true" Width="700px"
    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
    HeaderText="Plans Awaiting Approval" PopupAnimationType="Fade" EnableViewState="False">
    <ContentCollection>
        <dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server">
            <dx:ASPxGridView ID="gvPendingApprovalList" ClientInstanceName="gvPendingApprovalList" Width="100%"
                KeyFieldName="Month" runat="server" AutoGenerateColumns="false" DataSourceID="odsPendingApprovalList"
                OnCustomCallback="gvPendingApprovalList_CustomCallback">
                <Columns>
                    <dx:GridViewDataTextColumn FieldName="EmployeeName" Caption="Employee Name" Width="10%" VisibleIndex="1"></dx:GridViewDataTextColumn>
                    <dx:GridViewDataDateColumn FieldName="Month" Caption="Month" SortOrder="Descending" Width="10%" VisibleIndex="2"></dx:GridViewDataDateColumn>
                    <dx:GridViewDataTextColumn FieldName="Year" Caption="Year" Width="20%" VisibleIndex="3"></dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn FieldName="ApproveStatus" Caption="Submitted" VisibleIndex="3"></dx:GridViewDataTextColumn>
                </Columns>
                <SettingsPager PageSize="5">
                </SettingsPager>
                <Settings ShowStatusBar="Hidden" ShowFilterRow="false" ShowGroupPanel="false" />
                <SettingsDataSecurity AllowDelete="False" AllowEdit="False" AllowInsert="False" />
            </dx:ASPxGridView>
            <asp:ObjectDataSource ID="odsPendingApprovalList" runat="server" TypeName="Assistpro.AssistproCRM.Presenter.PlanPresenter"
                SelectMethod="GetDirectReporteesSubmittedPlansByUserId" OnObjectCreating="odsPendingApprovalList_ObjectCreating"></asp:ObjectDataSource>
        </dx:PopupControlContentControl>


    </ContentCollection>


</dx:ASPxPopupControl>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900