title: How to add new row in DevExpress Gridview using C# code in Winforms?
body: <p>I wants to add new row in GridViewControl. I tried this following code. But It doesn't adding any rows.</p>
  
  <p>I created Column <code>FilterValues</code> using <strong>RunDesigner</strong>.</p>
  
  <p>And then I am trying to add records using button click function by following code</p>
  
  <pre><code>(gridControlMultiFilterValues.MainView as DevExpress.XtraGrid.Views.Grid.GridView).AddNewRow();
  int newRowHandle = (gridControlMultiFilterValues.MainView as DevExpress.XtraGrid.Views.Grid.GridView).FocusedRowHandle;
  
  (gridControlMultiFilterValues.MainView as DevExpress.XtraGrid.Views.Grid.GridView).SetRowCellValue(newRowHandle, fieldName: "FilterValues", _value: "3rd Party %");
  
  (gridControlMultiFilterValues.MainView as DevExpress.XtraGrid.Views.Grid.GridView).UpdateCurrentRow();
  (gridControlMultiFilterValues.MainView as DevExpress.XtraGrid.Views.Grid.GridView).RefreshData();
  </code></pre>