Datagridview full row selection but get single cell value

后端 未结 16 948
傲寒
傲寒 2020-12-02 12:12

I have a datagridview that is a full row select. How would I grab the data from only a certain cell no matter what cell in the row was clicked on since it highlights the ent

16条回答
  •  有刺的猬
    2020-12-02 12:40

    I know, I'm a little late for the answer. But I would like to contribute.

    DataGridView.SelectedRows[0].Cells[0].Value
    

    This code is simple as piece of cake

提交回复
热议问题