Advertisement
Guest User

Untitled

a guest
Jun 15th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 3.13 KB | None | 0 0
  1.         <asp:GridView ID="gridUsuarios" runat="server" CellPadding="4" ForeColor="#333333"
  2.             GridLines="None" AutoGenerateColumns="False"
  3.             DataSourceID="ObjectDataSource1" Width="796px" style="margin-left:50px;"
  4.                 onrowdatabound="gridUsuarios_RowDataBound"
  5.                 onrowcommand="gridUsuarios_RowCommand"
  6.                 onrowdeleting="gridUsuarios_RowDeleting"
  7.                 onselectedindexchanged="gridUsuarios_SelectedIndexChanged">
  8.             <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Left" />
  9.             <Columns>
  10.                 <asp:BoundField DataField="Codigo" HeaderText="CÓDIGO" SortExpression="Codigo">
  11.                     <ItemStyle Width="130px" />
  12.                 </asp:BoundField>
  13.                 <asp:ButtonField DataTextField="Nome" HeaderText="NOME" Text="NOME">
  14.                     <ItemStyle Width="130px" />
  15.                 </asp:ButtonField>
  16.                 <asp:BoundField DataField="Nome" HeaderText="NOME" SortExpression="Nome"
  17.                     Visible="False">
  18.                     <ItemStyle Width="130px" />
  19.                 </asp:BoundField>
  20.                 <asp:BoundField DataField="Email" HeaderText="E-MAIL" SortExpression="Email">
  21.                     <ItemStyle Width="130px" />
  22.                 </asp:BoundField>
  23.                 <asp:CheckBoxField DataField="Status" HeaderText="STATUS"
  24.                     SortExpression="Status">
  25.                     <ItemStyle Width="130px" />
  26.                 </asp:CheckBoxField>
  27.                 <asp:BoundField DataField="Login" HeaderText="LOGIN" SortExpression="Login">
  28.                     <ItemStyle Width="130px" />
  29.                 </asp:BoundField>
  30.                 <asp:BoundField DataField="Senha" HeaderText="SENHA" SortExpression="Senha"
  31.                     Visible="False">
  32.                     <ItemStyle Width="130px" />
  33.                 </asp:BoundField>
  34.                 <asp:TemplateField ShowHeader="False">
  35.                 <ItemTemplate>
  36.                     <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False"
  37.                         CommandName="Delete" Text="Delete" OnClientClick="return confirm('Voce deseja excluir esse usuário?')"></asp:LinkButton>
  38.                 </ItemTemplate>
  39.             </asp:TemplateField>
  40.                 <asp:CommandField ShowSelectButton="True" />
  41.             </Columns>
  42.             <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
  43.             <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
  44.             <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
  45.             <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"
  46.                 HorizontalAlign="Left" />
  47.             <EditRowStyle BackColor="#999999" />
  48.             <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
  49.            
  50.         </asp:GridView>
  51.         <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
  52.             SelectMethod="PreencherLista" TypeName="Controle_de_Tarefas.Classes.ClassUser">
  53.         </asp:ObjectDataSource>
  54.         </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement