Torna al Thread
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Tan"
BorderWidth="1px" CellPadding="2" DataKeyNames="Id"
DataSourceID="SqlDataSource1" ForeColor="Black" GridLines="None" Height="66px"
PageSize="20" style="font-size: small; font-family: Verdana" Width="799px">
<AlternatingRowStyle BackColor="PaleGoldenrod" />
<Columns>
<asp:CommandField ButtonType="Button" DeleteText="Elimina record"
EditText="Modifica record" ShowDeleteButton="True" ShowEditButton="True"
UpdateText="Aggiorna record" CancelText="Annulla operazione">
<HeaderStyle Width="300px" />
<ItemStyle Wrap="False" />
</asp:CommandField>
<asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False"
ReadOnly="True" SortExpression="Id" Visible="False" />
<asp:BoundField DataField="Docente" HeaderText="Nominativo docente"
ReadOnly="True" ShowHeader="False" SortExpression="Docente">
<HeaderStyle Wrap="False" />
<ItemStyle Width="250px" />
</asp:BoundField>
<asp:BoundField DataField="NomeUtente" HeaderText="Nome utente" ReadOnly="True"
SortExpression="NomeUtente">
<HeaderStyle Wrap="False" />
<ItemStyle Width="100px" />
</asp:BoundField>
<asp:BoundField DataField="password" HeaderText="Password" ReadOnly="True"
SortExpression="password" />
<asp:BoundField DataField="Email" HeaderText="Indirizzo email" ReadOnly="True"
SortExpression="Email">
<HeaderStyle Width="500px" />
<ItemStyle Width="500px" />
</asp:BoundField>
<asp:BoundField DataField="Attivo" HeaderText="Attivo" SortExpression="Attivo">
<HeaderStyle Width="70px" />
<ItemStyle HorizontalAlign="Center" Width="70px" />
</asp:BoundField>
</Columns>
<FooterStyle BackColor="Tan" />
<HeaderStyle BackColor="Tan" Font-Bold="True" HorizontalAlign="Left" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue"
HorizontalAlign="Center" />
<RowStyle HorizontalAlign="Left" />
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<SortedAscendingCellStyle BackColor="#FAFAE7" />
<SortedAscendingHeaderStyle BackColor="#DAC09E" />
<SortedDescendingCellStyle BackColor="#E1DB9C" />
<SortedDescendingHeaderStyle BackColor="#C2A47B" />
</asp:GridView>