How to select visible columns in Datagridview bound to DataTable

前端 未结 4 1699
栀梦
栀梦 2020-12-11 22:36

I have these fields on Customer DataTable: ID,title,Name,Addrs,email,Fax and this code to bind the DataGridView:

         


        
4条回答
  •  盖世英雄少女心
    2020-12-11 23:26

    If the gridview autogeneratecolumns attribute is set to true change it to false and then do as Raimond suggested. Example:

    
            
                    
            
    
    

提交回复
热议问题