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?
pamwestphalAsked:
Who is Participating?
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.