Textbox Autocomplete in a DataGridView Winform

后端 未结 3 1350
轻奢々
轻奢々 2020-12-18 16:50

I\'ve got my DataGridView binding correctly to my datatable however I\'m trying to get autocomplete to work correctly for one of the textbox columns. The autocomplete is wor

3条回答
  •  情深已故
    2020-12-18 17:07

    Your if condition is just checking if the user has currently selected the third column.

    Do you want to make all that column editable? or just one cell in the currently selected row? How is the edit triggered by another button off the form? In this case when the edit becomes active any cell could be selected?

    You will need to index into the correct column and set it to have the autocomplete on.

提交回复
热议问题