Sapna
How can I use WinForms DataGridView in WPF Application?
By Sapna in Windows Forms on Oct 26 2010
  • Rajanikant Hawaldar
    Oct, 2022 13

    You could use DataGrid, instead of DataGridView

    1. SqlDataAdapter da = new SqlDataAdapter("Select * from Table", con);
    2. DataTable dt = new DataTable("Call Reciept");
    3. da.Fill(dt);
    4. DataGrid dg = new DataGrid();
    5. dg.ItemsSource = dt.DefaultView;

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS