1
- <asp:BoundField DataField="ID" HeaderText="ID" >
- </asp:BoundField>
- <asp:TemplateField HeaderText="ID" SortExpression="ID" >
- <EditItemTemplate>
- <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ID") %>'></asp:TextBox>
- </EditItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label1" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField>
- <ItemTemplate>
- <asp:ImageButton ID="imgbutton" runat="server" CausesValidation="false" CommandName="Delete" ImageUrl="images.png" Text="" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" ToolTip="delete file" />
- </ItemTemplate>
- </asp:TemplateField>
- # in Code Behind
- protected void Grid_RowCommand(object sender, GridViewCommandEventArgs e)
- {
- if (e.CommandName == "Delete")
- {
- int rowIndex = Convert.ToInt32(e.CommandArgument);
- GridViewRow row = (sender as GridView).Rows[rowIndex];
- int Id = (int)Grid.DataKeys[row.RowIndex].Value;
- }
- }
- protected void Grid_RowDataBound(object sender, GridViewRowEventArgs e)
- {
- if (e.Row.RowType == DataControlRowType.DataRow)
- {
- DataRowView rowView = (DataRowView)e.Row.DataItem;
- ImageButton imgButton = (ImageButton)e.Row.Cells[1].Controls[1];
- }
- }
How you need a casino right presently is only a major need. I think this will help you become a fruitful person who will consistently win large cash. In the event that you need more satisfaction, at that point in games you can get it. They will consistently reveal to you how to play accurately and river belle mobile casino how to put down wagers effectively in a casino
Post a Comment