Question: I want to get the data every column from a datagrid connected to an Entity Framework database.
I want to cast them to their respective Textboxes but I can't seemingly draw the data from the datagrid.

Here's the code I am using at first ([saw it here on SO](https://stackoverflow.com/questions/5121186/datagrid-get-selected-rows-column-values)):

```
 private void DataGridCamiao_SelectionChanged(object sender, SelectionChangedEventArgs e)
    {
        DataGrid DataGridCamiao = sender as DataGrid;
        DataRowView row = (DataRowView)DataGridCamiao.SelectedItems[0];
        TextBoxMarca.Text = row["Marca"].ToString();
    }

```

Though after running it gives me an error:

> 
> System.InvalidCastException: Cannot associate *(my custom type)* to *DataRowView*
> 
> 
> 

I've read about it and I've changed it to my custom type, to which it says it can't be indexed and does not run, which basically left me stumped as I tried other methods. I'd like some insight on what I'm doing wrong here, maybe different ways to achieve the same goal and I forwardly thank anyone trying to help me out.

Answer: 
Get an instance of the client builder with `AmazonS3ClientBuilder.standard()`.

Call `withClientConfiguration(new ClientConfiguration.withProtocol(Protocol.HTTP))` on the client builder instance, then call the builder's `build` method to get your S3 client instance that will use http instead of https
As long as your GET request does not use the SSL endpoint, you can specify the bucket for the request by using the HTTP Host header. 
<http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingSpecifyBuckety>