datagridview in metro - xaml

I want to create a datagridview in metro, likes in winform, with a header of datagridview, and I can select any row to edit or delete, how to design it? I know Grid can display data, but it couldn't let me to select anyrow, I've also reviewed gridview, but still didn't find how to realize it. I have a list of object, and I want to bind the list to the gridview, and I can also edit or delete any row of it, is it possible? Or there's other better design?

Datagridview is not supported in Metro App . Instead you should try to use GridView to display your data.
Document of GridView : GridView
Some samples : Sample

Related

vb.net datagridview and bindingsource

Im in the process over converting some legacy VB6 code over, in particular a TDBGrid linked to an ADODC data control.
Everything is going ok, ive got my columns and bindignsource reading sweet as a nut and performing what its supposed to do, correctly - but im having a problem converting this type of method over.
In the vb6 app, while a user scrolls through the grid, the grid fetchstyle (similar to cellformatting) go looking at the equivalent row of data in the adodc.
In .net, I cant seem to get that functionality to be the same, unless I add that field from the database, into a column in the grid and make it invisible (which I dont really want to be doing if i can help it) then read the cell via cellformatting and then perform some action, such as changing the cellstyle backcolor to something.
Is it possible to refer to a row in the bindingsource that would be the same row in the grid that a user is at, without having that field from the bindingsource - in a DGV column?
or do i just have to put up with placing more columns in the DGV than I want and just live with it?
Thanks!
I think you want the BindingSource.Current
object.

Header as combo box in datagridview vb.net

Is is possible to change just the header in a datagridview to be a combobox? I have data I am displaying that I wish the user to be able to change the header based on data within a combobox. I need to use a datagridview and keep the rest of my controls on my form the same. Is this even possible?
I don't believe you can set a column header in a DataGridView to be a ComboBox, however it would be perfectly possible to use the ComboBox to apply a new RowFilter on the DataGridView when it is changed, which I'm guessing is the effect you're after.

Datagridview transfer selected rows

How can I transfer selected rows from datagridview to another datagridview in another form? I'm having trouble with this.
You should be able to do that in in one of gridview event handlers. I would use
RowCommand Occurs when a button is clicked in a GridView control.
But you can do it any other event that meets your needs. Both the Gridview must be on same page so you can access them from code behind. You can access any control on the page using code behind, including GridView. You should be able to add contents/remove contents as needed. Make sure you issue databaind on both gridviews so they are rendered fresh after the changes. So basically you need code behind :)

Filtering DataGridView using Comboboxes

Let me preface this by saying I am a beginner as far as .net knowledge.
I am developing a windows form application using tabs in VS2012 in vb. I have bound the datagrid through the designer to a sql server binding source which is populating the data. There are multiple columns in the table and these are split between two tabs with a datagrid on each tab. Both data grids have the same binding source just show different columns.
I created a view within the SQL server to pull in the column names. I think what I want to do and not sure if this is possible but have 2 combo boxes that will be used to filter. One of the would be bound to the view by a dataadapter and then the second to the datagrid binding source.
when the user selects the first combobox(columnname) it would then pull from the datagrid for that column and pull in the valid values to filter. It would then filter the datagridview and refresh it.
Then I am trying to remove the filters through the use of a button.
Can someone please help as I don't even know where to start
You can use Dataview in filtering datasources. You can refer to my answer at this question

Ms Access 2007 ComboBox

I am using Access for a quick and dirty (ADP) interface for an SQL (Express 2012) database so data entry can begin before the MVC web app interface is complete.
There is one field I want to be varchar, I would like this field to either allow the user to type in a value or select from a distinct list of values previously used in that field.
I have that part down, but the problem is when it happens, I have to refresh the recordset to see the new item in the list, so if they choose add a new record, then the last item added is not visible in the list.
So I can get the distinct list, populate the box, allow for new entry, and save that to the DB, do I have to write a code behind to repopulate the recordset, do I need to write a code behind to maintain the list paralleled to the recordset, or is there just a property I am missing?
Thanks
(Added screen showing event)
As suggested, using the on current event on the form and the after update solved the problem.
Clicking the form section detail selected the detail sections property page not the form. Selecting the form from the drop down on the property page displayed the events I was suggested to use.
Many thanks to those contributing.
As the first suggestion of this was from Remau, with assist in locating that event from hansup, I will mark remau's post as answer. Thank you to both.
Don't requery the form, just requery the combo. The best bet is probably the current event which will work if more than one person is doing data entry. It will also work if people are editing the table as well as entering data. Events that only fire when a record is added will not pick up changes to the combo contents.
Private Sub Form_Current()
Me.MyCombo.Requery
End Sub