i tried it and didn't work with shouldAbort =false or true...
dataGrid2.EndEdit(dataGrid2.TableStyles[0].GridColumnStyles[dataGrid2.Curren
tCell.ColumnNumber],dataGrid2.CurrentRowIndex,false);
have any other ideas??
"Morten Wennevik" <(E-Mail Removed)> wrote in message
news

p.sw8qcxfhklbvpo@stone...
> Hi Islameguy,
>
> I think if you call DataGrid.EndEdit in your button event and speficy
false for shouldAbort the changes are saved.
>
> On Sat, 17 Sep 2005 11:14:34 +0200, Islamegy <(E-Mail Removed)> wrote:
>
> > When i press btn_save all changed rows in my grid get saved except the
last
> > editing row...
> >
> > I want my btn_Save to end editing in the datagrid.. so if user didn't
press
> > "enter" after editing last cell of the current row, I could force this
row
> > to be saved in the datasource.
> >
> > help plz
> >
> >
> >
>
>
>
> --
> Happy coding!
> Morten Wennevik [C# MVP]