great! dataview has that "allownew" property,
thanks all,
Adriano
"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:(E-Mail Removed)...
> I know this C# code doesn't help much, but it might jog somebody else's
> memory.
>
> myDVM = new DataViewManager(myDS);
>
> dgUsers.SetDataBinding(myDVM, "Users");
>
> DataView dv = ((CurrencyManager) this.BindingContext[dgUsers.DataSource,
> dgUsers.DataMember]).List as DataView;
> if(dv != null)
> {
> dv.AllowDelete = false;
> dv.AllowNew = false;
> }
>
> Seems to me you had to bind your grid to a dataview, and disable AllowNew
on
> the view.
>
> Greg
>
>
> "SStory" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Can't remember but I think there is an AllowAdd or AllowNew property for
> the
> > datagrid.... try that... (set to false)
> >
> > HTH,
> >
> > Shane
> > "Adriano" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > hello,
> > >
> > > how do i hide the last row of DataGrid (the one for inserting new
> > > data), so my users can't insert new data but only update and delete?
> > >
> > > thanks in advance,
> > > Adriano
> > >
> > >
> >
> >
>
>
|