ASP.net:
<asp:GridView ID="gvSP" runat="server" AutoGenerateColumns="true">
</asp:GridView>
Code-behind:
lstName.Add(lstN[f]); //name
lstCMSID.Add(lstNum[f]); //number
lstSpecialtyPhys.Add(data.Text.ToString()); //value
I would like to combine the three List and display it in the above GridView, like this:
Name Number Value
John Doe 56 90
James Coon 34 24
How can I achieve the above so there are three columns with three different header text.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…