Inserting rows into datagrids

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 2 methods activated through a context menu that insert and delete rows
from the dataTable linked to a datagrid.

I can delete rows the selected row with no problems, but when I try to use
the insertat method of the dataTable class the row is inserted at the bottom
of the datagrid. I read that it is still inserted into the datatable at the
right spot. is there a way to make it so the datagrid also displays the
correct location of the new row without shifting all the data? Thanks.
 
YA We can ..In the Item Bound of the Grid BEfore Adding new row add the Grid
Content to the Dataset ..Then at any instance u can find the the Number of
rows ..Now add a new Blank row the Dataset and Bind it to Grid . Now u will
have a Blank row at the Bottom of the Grid.
 
I'm sorry if I wasn't clear, but I'm trying to insert a row inbetween 2
existing rows in a datagrid without me having to manually shift all the data
down to make the empty row.

--
*********************
J Streger
MS Office Master 2000 ed.
MS Project White Belt 2003
 
Back
Top