0
私はamazon Webサービスを使用するwinformアプリケーションで作業しています。まず、あなたがあなたからのDataTableを作成する必要があります。..xmlオブジェクトを使用してC#でdatagridviewをバインドする方法
private void btnRun_Click(object sender, EventArgs e)
{
if (CheckForInternetConnection())
try
{
// Instantiate Amazon ProductAdvertisingAPI client
amazonClient = new AWSECommerceServicePortTypeClient();
// prepare an ItemSearch request
request = new ItemSearchRequest();
request.SearchIndex = "Books";
request.Title = "The Life and Love of the Sea";
request.ResponseGroup = new string[] { "Small" };
itemSearch = new ItemSearch();
itemSearch.Request = new ItemSearchRequest[] { request };
itemSearch.AWSAccessKeyId = ConfigurationManager.AppSettings["accessKeyId"];
itemSearch.AssociateTag = "AssociationTag";
// send the ItemSearch request
response = amazonClient.ItemSearch(itemSearch);
// here i want to bind the datagridview with this xml response.
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
else
MessageBox.Show("No Internet Connection found");
}
実際に私は正確にXMLオブジェクトの –
どのようなタイプの....私はXMLオブジェクトを持って、xmlファイルを持っていけませんか? (C#クラスまたは同等のもの) – Furtiro
申し訳ありませんが、私はそれについてはわからない –