• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

Datagird extra row

On all my datagrids I have an extra row that allowd the user to add rows to the grid.  Is there anyway to get rid of this row?
0
pamwestphal
Asked:
pamwestphal
  • 2
1 Solution
 
iboutchkineCommented:
set propert ReadOnly to True. User will not be able to add row

If you still want to edit (but not to add) existing records then

  Dim CM As CurrencyManager

        CM = Me.BindingContext(DataGrid1.DataSource, DataGrid1.DataMember)
        CType(CM.List, DataView).AllowNew = False
        CType(CM.List, DataView).AllowEdit = True
0
 
pamwestphalAuthor Commented:
Setting the property to ReadOnly will make it so you can't add a new row but is there anyway to remove the row entirely?
0
 
iboutchkineCommented:
The empty row with an * will not be there
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now