Editable DataGrid without automatic new row???

  • Thread starter Thread starter Robert C. Nell
  • Start date Start date
R

Robert C. Nell

I have subclassed a datagrid (in VB.Net) and provided custom column styles,
full-row select, etc. The last thing I'd like to do is eliminate the
automatically generated new row when the ReadOnly property is set to True.
I want to allow editing of columns in the grid but not have the empty row at
the bottom. Anybody know how I can do this? Google searches have produced
a lot of links but no answers.

Thanks!
 
It's down to the datasource. If the datagrid is based on a dataview then
you can lose the 'new' row by setting the dataview's allownew property to
false.

(I think)
 
Hi Robert,

See the "Prevent Add New row in grid" thread started by Tyke Czekalski in
this NG for the code example.
 
Back
Top