Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. protected void DtgGestiones_SelectedIndexChanged(object sender, EventArgs e)
  2. {
  3.  
  4. if (this.IsPostBack)
  5. {
  6. try
  7. {
  8. DtTab = new DataTable();
  9. DtTab = (DataTable)Session["Data"];
  10. DtgGestiones.CurrentPageIndex = 0;
  11. DtgGestiones.CurrentPageIndex = e.NewPageIndex;
  12. DtgGestiones.DataSource = DtTab;
  13. DtgGestiones.DataBind();
  14.  
  15. //LLenarGrilla();
  16. }
  17. catch (Exception Ex)
  18. {
  19.  
  20.  
  21. }
  22. }
  23. }
  24.  
  25. <asp:DataGrid ID="DtgGestiones" runat="server" AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false"
  26. BorderWidth="1px" CellPadding="0" CellSpacing="0" Font-Bold="False" Font-Overline="False" Font-Strikeout="False"
  27. HorizontalAlign="Left" PageSize="250" PagerStyle-Mode="NumericPages" HeaderStyle-Font-Bold="true"
  28. CssClass="table table-hover table-bordered table-condensed table-striped"
  29. Font-Names="Calibri" Font-Size="12px" OnItemCommand="DtgGestiones_ItemCommand" PagerStyle-CssClass="pagGrig" OnPageIndexChanged="DtgGestiones_PageIndexChanged" OnSortCommand="DtgGestiones_SortCommand" OnSelectedIndexChanged="DtgGestiones_SelectedIndexChanged">
  30.  
  31. <Columns>
  32. <asp:BoundColumn DataField="RUBRO" SortExpression="RUBRO" HeaderText="RUBRO" ReadOnly="True">
  33.  
  34. </asp:BoundColumn>
  35. <asp:BoundColumn DataField="OFICINA" SortExpression="OFICINA" HeaderText="OFICINA" ReadOnly="true"></asp:BoundColumn>
  36. <asp:BoundColumn DataField="USUARIO ATENCION" SortExpression="USUARIO ATENCION" HeaderText="USUARIO ATENCION" ReadOnly="True"></asp:BoundColumn>
  37. <asp:BoundColumn DataField="FECHA DE EMISION" SortExpression="FECHA DE EMISION" HeaderText="FECHA DE EMISION" ReadOnly="True" DataFormatString="{0:dd/MM/yyyy}"></asp:BoundColumn>
  38. <asp:BoundColumn DataField="FECHA DE VENCIMIENTO" SortExpression="FECHA DE VENCIMIENTO" HeaderText="FECHA DE VENCIMIENTO" ReadOnly="True" DataFormatString="{0:dd/MM/yyyy}">
  39. <ItemStyle HorizontalAlign="Right" />
  40. </asp:BoundColumn>
  41. <asp:BoundColumn DataField="MONTO PAGADO" SortExpression="MONTO PAGADO" HeaderText="MONTO PAGADO" ReadOnly="True" DataFormatString="{0:0,0.00}">
  42. <ItemStyle HorizontalAlign="Right" />
  43. </asp:BoundColumn>
  44. <asp:BoundColumn DataField="NUMERO DE RECIBO" SortExpression="NUMERO DE RECIBO" HeaderText="NUMERO DE RECIBO" ReadOnly="True" >
  45. <ItemStyle HorizontalAlign="Right" />
  46. </asp:BoundColumn>
  47. <asp:BoundColumn DataField="PAGADO" SortExpression="PAGADO" HeaderText="PAGADO" ReadOnly="True" >
  48. <ItemStyle HorizontalAlign="Right" />
  49. </asp:BoundColumn>
  50. <asp:BoundColumn DataField="VALIDADO" HeaderText="VALIDADO" ReadOnly="True" sortExpression="VALIDADO" >
  51. <ItemStyle HorizontalAlign="Right" />
  52. </asp:BoundColumn>
  53. <asp:ButtonColumn CommandName="Gestiones" HeaderText="Gestionar" Text="Ver" >
  54. <ItemStyle
  55. Font-Bold="False" Font-Italic="False" Font-Overline="False"
  56. Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
  57. </asp:ButtonColumn>
  58. </Columns>
  59. </asp:DataGrid>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement