Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは、SQL クエリの結果を WPF アプリケーションのデータグリッドに追加したいと考えています。SQL to LINQ を使用してデータを取得しています。助けてください。
C# を使用して、DataGrid の ItemSource プロパティをそのクエリの結果の値に設定するだけです。
dataGrid1.ItemSource = query ;
XAML で AutoGenerateColumns プロパティを true に設定してください。
<DataGrid x:Name="dataGrid1" AutoGenerateColumns="True" />