2007-03-12 12:35:23 UTC
Now, I create a DataAdapter and use its Fill method to populate a DataSet with all the records in the Countries table (having two fields: country_id, country_name) and set the DataSource of the DataGridView to the DataSet.
The problem is that, the two columns that i created are left blank and two more columns are added to the DataGridView and the actual data is shown in those columns. I don't like it this way because their headers show up the actual attribute names "country_id" and "country_name".
How can i display the data in the columns i created earlier with proper formatting OR if I dont create the columns, then how can I change the header text to something like "Country ID" and "Country Name" ???
Any help will be highly appreciated...!!
Thanks in advance