Updating dataset with gridview

One of the cool things about the Power Shell grid is that the columns are resizable. Then simply click on the separator bar between the Name heading and Display Name heading and drag that bar to the right to resize the column (yes, just like you would in Excel): Ah, now we see: it’s the Audio Endpoint Builder service. Resizable columns; these might not get as much publicity as new Power Shell features like remoting and runspaces, but they just might be every bit as useful. By default, the Get-Service cmdlet sorts service information on the Name property.

That’s fine, but suppose that what we deal; after all, we could just re-run our Get-Service command, taking care to sort the data by Display Name before handing it off to Out-Grid View.

Hey, no problem; simply click the expand/contract arrow located to the left of each group heading, Click the arrow next to the label Stopped and you should see something similar to this: Should you someday tire of viewing information by group, well, all you have to do is right-click and select (Toggle) Show in Groups a second time.

As the word suggests, this will now turn grouping off.

The information in this article was written against the Community Technology Preview (CTP) of Windows Power Shell 2.0.

This information is subject to change in future releases of Windows Power Shell 2.0.

In this case, we replaced the default Label with a Radio Button List that had its Data Source set to a table that listed the user's choices.


Click once on a column header and the entire grid will be sorted by that column, in ascending order; click a second time and the grid will be sorted in to sort by a single column. If you want to sort by two or more items then you’ll need to sort the data and Grouping Data Another cool thing you can do with the Power Shell grid is group the displayed information by any of the column headings; all you have to is right-click one of the headings and choose (Toggle) Show in Groups. As an example, I recently had a question from a developer who was creating a survey.



  1. Pingback:

  2. eric   •  

    Park visitors are more likely to die by drowning in one of Yellowstone's rushing rivers, or falling off a cliff during a hike, than they are to be slain by a grizzly.

  3. eric   •  

    If you act now’or even if you don’t’the party still doesn’t stop as still another large pix collection helps to further promote sex-genre diversity and tests just how much material a big boob webcam porn site can cram into itself without crashing.

  4. eric   •  

    We from got a lot of questions, if there's a chance to contactand see naughty mature women live! Check out the naughtiest mature women and get in touch with them!

  5. eric   •  

    The only unnumbered ones we saw were made by machine shops in North Korea and some much later from North Vietnam.

  6. eric   •  

    I love u murat sooooooo much in my eyes u will always be my favourite actor if u have a sister she is so lucky cause she has a brother like u I love u and I will always do hope to see and I am really happy u r Muslim inshallah u will go to heaven slt murat ci wafa d'alger jaime bien tes files et tan travaille je vous souhaite une bonne contunation et bonnz chanse et bien sur je taime bien murat tu ressemble a manamour il s'appéle nabil babay salut murat je viens du maroc et je voudrais te dire seulement 3paroles: JE T' AIME A LA FOLLIE.

  7. eric   •  

    “Anecdotally, I was busy with graduate coursework and teaching full-time, so going to bars was not an option for me,” says Cohen.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>