Skip to content

Instantly share code, notes, and snippets.

@yaplex
Last active June 15, 2017 21:35
Show Gist options
  • Save yaplex/17ce634c9b8fdcca0365ac99639e2f3f to your computer and use it in GitHub Desktop.
Save yaplex/17ce634c9b8fdcca0365ac99639e2f3f to your computer and use it in GitHub Desktop.
<asp:GridView ID="GridView1" runat="server" CssClass="dataGrid"
DataSourceID="SqlDataSource1" AllowPaging="True" AutoGenerateColumns="false"
OnRowDeleting="grid_onRowDeleting" OnRowUpdating="GridView1_OnRowUpdating"
AutoGenerateEditButton="true" AutoGenerateDeleteButton="true"
PageSize="20" GridLines="None" Width="99%">
<AlternatingRowStyle CssClass="odd" />
<Columns>
<asp:TemplateField HeaderText="App Id">
<ItemTemplate>
<asp:Label ID="lbl" runat="server" Text='<%#Bind("APP_ID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="App name">
<ItemTemplate>
<%#Eval("APPLICATION_NAME")%>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment