Fill a GridView control from list

  1. #1

    Fill a GridView control from list

    Hi All,

    I am very new with the ext.net, I want to fill an ext.net gridview control from a list<class1> data source. Can any one help me on this.

    Thanks
    Md. Marufuzzaman
  2. #2
    You could take a look to this example: https://examples1.ext.net/#/GridPane...e_Reconfigure/

    Click at the Source Code button and then you will see something like this:
            this.Store1.DataSource = new List<object>
            {
                new { IntField1 = 1, StringField = "Set2_1", IntField2 = 1, Timestamp = now },
                new { IntField1 = 2, StringField = "Set2_2", IntField2 = 2, Timestamp = now },
                new { IntField1 = 3, StringField = "Set2_3", IntField2 = 3, Timestamp = now },
                new { IntField1 = 4, StringField = "Set2_4", IntField2 = 4, Timestamp = now },
                new { IntField1 = 5, StringField = "Set2_5", IntField2 = 5, Timestamp = now },
                new { IntField1 = 6, StringField = "Set2_6", IntField2 = 6, Timestamp = now }
            };
            this.Store1.DataBind();
    Let know if you still need help...
    Last edited by Daniil; Dec 11, 2011 at 3:45 PM. Reason: Please use [CODE] tags

Similar Threads

  1. fill my store from a list of object.
    By DEV_EXT_TN in forum 2.x Help
    Replies: 0
    Last Post: Aug 01, 2012, 11:54 AM
  2. Replies: 4
    Last Post: Jun 11, 2012, 4:27 PM
  3. [CLOSED] [1.0] best control to use as interactive pop-up list
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 08, 2010, 1:26 PM
  4. Replies: 10
    Last Post: Mar 30, 2010, 8:35 AM
  5. fill gridpanel with a list??
    By carlosmupe in forum 1.x Help
    Replies: 2
    Last Post: Dec 15, 2009, 4:03 PM

Posting Permissions