Saturday, August 10, 2013

C# WPF Tutorial 17- Show database values in Table or DataGrid

















---------------------------------------------------------------------------------
C# - How to get user entered data from datagridview to windows
Insert, Update and Delete from DataGridView to sqlite WPF   ,MySql Sql database WPF WPF
Microsoft Visual C#/CLI  Windows Controls The Data Grid View
C# Tutorial - Binding a DataGridView to a Database
c# - How to save datagridview records on database table
how can i use data grid view to update data in database using C# WPF
Delete in Datagridview and SQL database‎ WPF
Save From datagridview to access database‎  WPF
Update database from DataGridView‎
transferring multiple row data from listview to datagridview c sharp‎
retrieving seleted value from combobox in datagridview‎  WPF
Updating database table from DataGridView‎  WPF
update DataSet from DataGridView, and update database from
How to Create a Simple Windows Forms C# Database Application
Searches related to c# datagridview database
c# datagridview without database WPF
c# datagrid view WPF
How to insert data from DatagridView to MS Access Database WPF







5 comments:

  1. You have successfully generated the Table in a datagrid ......But The problem is their is extra cloumn and row on ending of table from db.....How to disable this extra column and show only table from database on entire datagrid size ?I have tried many option by searching on Google but they didn't work. Please Help as soon as possible because I am professionally developing wpf application ...Thanks

    ReplyDelete
  2. CanUserAddRows="False"

    ReplyDelete
  3. I've created a button that refresh all records in datagridview, but whenever I click the Button "Refresh" in the datagridview the data show as duplicated data going below the old records. How can I make a button that refreshes all data in datagridview that replaces the same cells or records.
    Please help me if you can.

    ReplyDelete
  4. PS: This is the code:

    sda.Fill(dt);
    dataGridView1.DataSource = dt.DefaultView;
    sda.Update(dt);
    dataGridView1.Refresh();

    ReplyDelete
  5. One of the columns of my table is used to store images in blob data type. How do I display this image along with my other table's data in the grid? I have tried selecting this image column in the query like the other columns, but a byte array is shown in the grid for this column:
    Byte[]Array

    ReplyDelete