Quantcast
Viewing all articles
Browse latest Browse all 12583

Mapping Datagridview with dataTable.

~What i am doing.

#I am retrieving data from excel file and storing it in dataTable.

#this dataTable is then mapped with dataGridview for display.

#To the visible Datagrid i add an extra column ( ex Primary key) which will automatically generate row numbers for each row.

~What i want.

#While retrieving data from dataGridview  i.e datagridview.datasource  in datatable the newly added column (Primary key) is not shown.

#The dataSource of datagridview is not updated for new column.

#So how do i reflect this changes in my dataTable?

Viewing all articles
Browse latest Browse all 12583

Trending Articles