Re: Could anyone please confirm this?



"Günther Schmidt" <gue.schmidt@xxxxxx> wrote in message
news:4345b2cc@xxxxxxxxxxxxxxxxxxxxxxxxxx
> ... you show a list of items in a multicolumn list view,
> when you edit one of the items the list won't update,
> the trick is to remove the item temporarily,
> edit it,
> and the reinsert it,
> so the list will update...

I think removing and re-adding it is a bit too heavy handed. You can just
tell the ListModel to refresh the disiplay for that item that was edited.
For example evaluate the following line by line to see what happens:
==============
col := ListModel on: #('aaa' 'bbb' 'ccc').
(lp := ListPresenter showOn: col) view topShell extent: 100@100.
"Make a change that requires a display update."
col first at: 2 put: $B.
"Now tell the ListModel to refresh the display for the item that was
changed."
col updateItem: col first.
==============
FYI: In Dolphin 6 updateItem: is deprecated in favor of refresh: .

Chris


.



Relevant Pages

  • Re: refresh gridview at postback
    ... I am seeking a solution where 'delete' and 'edit' will work. ... without invoking databind, then 'delete' correctly removes ... However then 'edit' fails to refresh the gridview. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Oracle 10g cursor, override CRecordset::Update() problem
    ... ASSERT(m_dwOptions & useMultiRowFetch); ... What we see is that in the edit case, the edit is made to the data store ... the CRecordset object, which does then refresh the edited record, but this is ...
    (microsoft.public.data.odbc)
  • Re: View a WinWord Doc in a WinForm
    ... edit it as well. ... First, the time it takes to load (or refresh if the> doc changes); second, the WinWord document view is whatever the user has set> (ex. ... > On the new Active Document Host Control, will we be able to minipulate the> hosted document or is it view only? ... I cannot convert it to RTF because I have> drawn ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Edit and continue in VS2005
    ... "Edit & Refresh" is supported. ... implement that client app E&C. ... code on remote server is a major security violation. ...
    (microsoft.public.vsnet.general)