Quantcast
Viewing all articles
Browse latest Browse all 12583

Datagridview Column Naming

Hai

I am developing a project in Asp.net c#.In one of my form am using two datagridview and these gridviews are filling using a common function which has gridview as one of its parameter like

ShowRecordDetail_SP("RETAIL_SALES_DETAIL", "2011", dgvDetail);

To make it work i want to assign database table fields as the name of gridview columns.

My problem is two tables is having columns with same name.In both grid views there is a field called 'PCS', and both table in database also having same column name as 'PCS'.So second grid view is not allowing me to set column name as 'PCS' because first gridview already has a column in same name.Is there any way to fix this problem.?

Please any one help me.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>