Results 1 to 3 of 3

Thread: Request for a sample

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    6

    Request for a sample

    I have a very simple task, that drives me completely insane, i just don't get it:

    I want a DataGrid, with an attached _STATIC_ datasource, a list, not DB-table.
    The sample just needs 1 column, say a number.

    And I want a button, that adds a new number to the list, and displays it, without usings hacks like
    gird.datasource = nothing
    grid.datasource = _STATIC_SOURCE_

    I'm pretty sure this is simple, but I don't get it.
    (Chose the right username).

    I am grateful for _ANY_ ideas.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    6
    Sorry to say, that does not help me.

    I read data from a socket. NO DATABASE.

    I want to update to Grid AFTER i assigned to datasource.
    Something like this:

    mySource = <INSTACE_OF_A_CLASS_THAT_IMPLEMENTS_IBindingList_OR_WHATEVER_I_NEED>
    mySource.Add(new Entry())
    mySource.Add(new Entry())
    myDataGrid.datasource = mySource

    'The Grid shows 2 Entries

    mySource.Add(new Entry())
    mySource.Add(new Entry())

    'The Grid shows 2 Entries -> How do I force the Grid to update it's source ???

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width