Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

UDSISTEMAS

[Resolvido] Grid view evento botao

Recommended Posts

Olá, bom dia!!

Estou com este erro:

 

Compilation Error

 

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

 

Compiler Error Message: CS1061: 'ASP.default_aspx' does not contain a definition for 'GridViewClientgroupaTTendant_RowCommand' and no extension method 'GridViewClientgroupaTTendant_RowCommand' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or an assembly reference?)

 

Source Error:

 

 

Line 117: <asp:TabPanel runat="server" HeaderText="Relatório de Cliente" ID="TabPanel1">

Line 118: <ContentTemplate>

Line 119: <asp:GridView ID="GridViewClientgroupaTTendant" runat="server"

 

 

 

MEU EVENTO LOAD DO GRID:

 

protected void LoadClientGroupATTendant()
       {
           List<Lib.OM.Ura.ClientGroup> clienteGroupaTTendant = new List<Lib.OM.Ura.ClientGroup>();
           clienteGroupaTTendant = Lib.BLL.Ura.getClientGroupAttendant(null);
           try
           {
               if (clienteGroupaTTendant.Count > 0)
               {
                   GridViewClientgroupaTTendant.DataSource = clienteGroupaTTendant;
                   GridViewClientgroupaTTendant.DataBind();
               }
           }
           catch (Exception ex)
           {
               ShowAlert(ex.Message);
           }
       }

 

 

E O GRID NO ASP:

 

 

<asp:GridView ID="GridViewClientgroupaTTendant" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#FF6600" BorderStyle="Solid" BorderWidth="2px" CellPadding="4" 
                                           OnRowCommand="GridViewClientgroupaTTendant_RowCommand" Width="100%">
                                           <Columns>
                                               <asp:BoundField DataField="Extension" HeaderText="Ramal" 
                                                   SortExpression="Ramal" />
                                               <asp:BoundField DataField="Name" HeaderText="Nome Atendente" 
                                                   SortExpression="Nome Atendente" />
                                               <asp:TemplateField>
                                                   <ItemStyle CssClass="text-center" Width="25px" />
                                               </asp:TemplateField>
                                           </Columns>
                                           <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                                           <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                                           <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                                           <RowStyle BackColor="White" ForeColor="#003399" />
                                           <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                                           <SortedAscendingCellStyle BackColor="#EDF6F6" />
                                           <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                                           <SortedDescendingCellStyle BackColor="#D6DFDF" />
                                           <SortedDescendingHeaderStyle BackColor="#002876" />
                                           </asp:GridView>

 

 

 

PODE ME AJUDAR? ABS

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.