dataview sorting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Uri Dimant

    #1

    dataview sorting

    Hello folks

    Can anyone help me with sorting for binding?
    VS2005. VB.NET

    I have a datagrid view where I display two columns - name of employees with
    their positions like
    'John' ,1
    'Rebecca',2
    'Justin',3

    As far as good. I have a data table and I perform filter by using data view
    object to select only "right" employees. So what if the user wants to change
    John's position to 3 then I need to sort the dataview ( I think) with
    Rebecca =1, Justin =2, John=3 and later on update to the database. How can I
    do that?

    Thanks



  • Cor Ligthert[MVP]

    #2
    Re: dataview sorting

    Uri,

    A dataview is dynamic, so when you have set the position by Rebeca to 1 etc.
    it will be showed in that way.

    Cor

    "Uri Dimant" <urid@iscar.co. ilschreef in bericht
    news:eZaNtsG9HH A.4432@TK2MSFTN GP02.phx.gbl...
    Hello folks
    >
    Can anyone help me with sorting for binding?
    VS2005. VB.NET
    >
    I have a datagrid view where I display two columns - name of employees
    with their positions like
    'John' ,1
    'Rebecca',2
    'Justin',3
    >
    As far as good. I have a data table and I perform filter by using data
    view object to select only "right" employees. So what if the user wants to
    change John's position to 3 then I need to sort the dataview ( I think)
    with Rebecca =1, Justin =2, John=3 and later on update to the database.
    How can I do that?
    >
    Thanks
    >
    >
    >

    Comment

    Working...