How to add new lines to Devexpress gridview, when we set up datasource from List OSGest, I want to add a new row on runtime . If you change your list to a binding list, then it will work Private Zero SetData () {List & lt; CITEM & gt; LstItem = new list & lt; CITEM & gt; (); Grid Control 1.datasource = lstItem; GridView1.PopulateColumns (); } Private Zero Button 1_Click (Object Sender, EventArgs e) {gridView1.AddNewRow (); }
Comments
Post a Comment