SQL data in DataGridView

后端 未结 2 2000
猫巷女王i
猫巷女王i 2021-01-29 01:47

Hey guys, I have an application that I want to display some data from a sql db in a DataGridView... I have the data displayed in the DataGridView now but here are my questions..

2条回答
  •  醉话见心
    2021-01-29 02:23

    For hiding you columns ("Row_ID") You can use

    dgView.Columns[0].Visible = false;
    

    For setting header text

    dgView.Columns[1].HeaderText = "PartNumber";
    

提交回复
热议问题