Extra row in DataGrid?!?

  • Thread starter Thread starter jy836
  • Start date Start date
J

jy836

Whenever I display data from a dataset in my DataGrid (whoa, that's a lot of
"datas" :-D), there's always an extra blank row at the bottom, which when
clicked on, puts "(null)" in every single cell of the bottom row. Is there a
way to fix that? Thanks.
 
Dim cm As CurrencyManager = CType(BindingContext(Grid.DataSource,
Grid.DataMember), CurrencyManager)
CType(cm.List, DataView).AllowNew = False


dominique
 
Dominique Vandensteen said:
Dim cm As CurrencyManager = CType(BindingContext(Grid.DataSource,
Grid.DataMember), CurrencyManager)
CType(cm.List, DataView).AllowNew = False


dominique

It worked. Thanks!!!
 
Back
Top