Search code examples
vb.netdevexpressxtragrid

Xtragrid is creating next row automatically ,how to prevent it


Check if any column value is null for current row if null then do not create another row in xtragrid


Solution

  • Refer the documentation: New Item Row Overview

    In the GridView, the new item row is an empty row that is used to enter new records. It can be displayed above or below all data and group rows. The new item row's position is specified by the GridView's GridOptionsView.NewItemRowPosition property. If this property is set to NewItemRowPosition.None, the new item row is hidden.

    References:
    gridview adding new row without losing focus
    Devexpress GridControl : Prevent new row added automatically