How to Add new row in Devexpress gridview, When we set DataSource from List objlst I want to add new row at runtime.
private void SetData()
{
List<CITEM> lstItem = new List<CITEM>();
gridControl1.DataSource = lstItem;
gridView1.PopulateColumns();
}
private void button1_Click(object sender, EventArgs e)
{
gridView1.AddNewRow();
}