Windowsフォームアプリケーションにグリッドビューがあり、ボタンをクリックするとグリッドビューが作成され、タイトルの列/行にタグが表示されます(そのように設定したため(コードの下))が、タグのタイトルをテキストボックスに入力されたものに置き換えられた場合、以下のコードをどのように変更しますか?
Tag = n.Element("GroupName").Value
完全なコード:
XDocument xDoc = XDocument.Load(tagUri);
var Tag = xDoc.Descendants("Group")
.Select(n => new
{
Tag = n.Element("GroupName").Value, // Tag in this line represents the column name, I would like this changed to be a textbox input.
})
.ToList();
dataGridView4.DataSource = Tag;