Click here to Skip to main content
15,920,111 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to bind many rows of data to the class1 objects.

How do I go about doing this?
C#
public class class1 : IDisposable
{
    public int cid { get; set; }
    public double cdt { get; set; }
    public double cc1 { get; set; }
    public double cc2 { get; set; }
    public double cc3 { get; set; }
}

C#
protected void Page_Load(object sender, EventArgs e)
        {
            using (class1 test = new class1())
            {
                //loop input values for test.cid,test.cdt,test.cc1,test.cc2 and test.cc3  
             }
         }
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900