Inserting rows into datagrids

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.
 
G

Guest

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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top