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@xxxxxxxxxxx> schreef in bericht news:eZaNtsG9HHA.4432@xxxxxxxxxxxxxxxxxxxxxxx
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




.



Relevant Pages

  • DataView
    ... loaded the Employees table into it. ... I am having trouble putting all the parts together to retrieve a single ... row of that DataView. ... What I've tried keeps getting syntax errors or exceptions. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: (newbie - VB2005) writing to file
    ... Cor Ligthert [MVP] schreef: ... Just an XML file, the most easy one in that is a dataset. ... do I have to use DataView to assign a field to a string, ...
    (microsoft.public.dotnet.languages.vb)
  • Intermediate Table / DataView / Strongly Typed Dataset
    ... How can I create a dataview of the Employees in a given Group? ... is done with the new designers and classes. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Row Filter Visibility
    ... You are using the Table from the dataview instead of the dataview ... schreef in bericht ... How can I set up the loop to only process the visible rows? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: DataViewHelp
    ... String strCmd = "SELECT LastName FROM Employees "; ... SqlDataAdapter da = new SqlDataAdapter(strCmd, strConn); ... In the dataview is now a column that is ...
    (microsoft.public.dotnet.general)