Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Asp.net drop-down list box selects the table name as sqldatasource+Gridview, and selects how to open the table and update the data after adding data in edit mode.
Asp.net drop-down list box selects the table name as sqldatasource+Gridview, and selects how to open the table and update the data after adding data in edit mode.
There are many solutions:

1) Hide columns that you don't want to display in the bound GridView:

This. GridView 1。 Column [0]. Visible = false; //0 is the field name you don't want to display, and it can only be plastic;

2) You bind GridView with a custom binding.