Cq realize the conversion from indefinite row to column and column of datatable through LINQ

From , 5 Years ago, written in C#, viewed 86 times.
URL https://pastebin.vip/view/21c52f53
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="LinqDemo2.aspx.cs" Inherits="LinqDemo2" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head runat="server">
  7.     <title>LinQ实现DataTable不定行转列</title>
  8. </head>
  9. <body>
  10.     <form id="form1" runat="server">
  11.     <div>
  12.         原始表:<br />
  13.         <asp:GridView ID="GridView1" runat="server" Width="300px">
  14.         </asp:GridView>
  15.         <br />
  16.         转换以后的表:<br />
  17.         <asp:GridView ID="GridView2" runat="server" Width="300px">
  18.         </asp:GridView>
  19.     </div>
  20.     </form>
  21. </body>
  22. </html>
  23.  
  24.  
  25.  
  26. //csharp/5801

Reply to "Cq realize the conversion from indefinite row to column and column of datatable through LINQ"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website