台灣最大程式設計社群網站
∣
免費加入會員
∣登入
∣回首頁∣
您好
線上人數
1111
會員總數:
246213
討論主題:
189782
討論區
程式下載/上傳
科技新聞
專欄文章
會員中心
加值服務
外包接案
求職求才
登入
登出
歡迎您
免費
加入會員
討論區選單
新手必讀
我要提問!!
討論區
個人討論區
我的關注主題
我的黑名單
討論區EP英雄榜
專家等級說明
討論區常見問題
兌換發問點數QP
扣點申請加值服務
申請版主
開發工具
ASP
ASP.NET
C#
VB.NET
VB6
C/C++
PHP
Java
Java Script/ Node.js
AJAX / JSON / jQuery
其他語言
行動裝置開發
Android APP 開發
iOS APP/ swift 開發
Windows Phone APP
資料庫
ACCESS
MS SQL
MySQL
Oracle
其他DB
多媒體 / 網管
CSS/HTML5/Bootstarp
影像處理
office VBA / WinOS
Windows 伺服器
Linux / Unix
網管 / 資安 / VM
硬體 / 週邊 / 其他
綜合
求職求才
外包接案
心情甘苦談
網站經營 / 合夥 / 證照
建言 / 公告
文章區
專欄文章
科技新聞
Blog精華文章
討論區列表
>>
VB.NET
>> datagridview cell 如何作到自動完成
[]
[
我要回覆
]
1
datagridview cell 如何作到自動完成
價值 : 50 QP
點閱數:372 回應數:1
樓主
MStone Lin
0
99
1962
132
發送站內信
請問
使用textbox 有 TextBox1_TextChanged 或 autocomp..作到 輸入1個字元後,可以秀出對應資料來選擇
那
datagridview 呢
如何 在某個 cell 按下一個字元後,例如'A' 就show出A開頭所有對應的資料(listbox)
且還能記住是那個cell,因listbox選擇完後 要回填到 原來的cell
datagridview 該用那個事件來判斷呢?
謝謝...
搜尋相關Tags的文章:
[ datagridview ] ,
[ cell ] ,
[ changed ] ,
本篇文章發表於2019-10-08 11:02
1樓
回應
何葦凡
DataGridView貌似有內建自動填入 你試試看這串
Private Sub DataGridView1_EditingControlShowing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles DataGridView1.EditingControlShowing Dim autoText As TextBox = CType(e.Control, TextBox) autoText.AutoCompleteMode = AutoCompleteMode.Suggest autoText.AutoCompleteSource = AutoCompleteSource.CustomSource autoText.AutoCompleteCustomSource.Add("Product 1") autoText.AutoCompleteCustomSource.Add("Product 2") autoText.AutoCompleteCustomSource.Add("Product 3") autoText.AutoCompleteCustomSource.Add("Product 4") autoText.AutoCompleteCustomSource.Add("Product 5") End Sub
本篇文章回覆於2019-10-09 17:00
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔--
1
回覆
如要回應,請先
登入
.
|
網站導覽
|
網站介紹
|
4P點數說明
|
電子報
|
小舖活動
|
大事紀
|
廣告刊登
|
常見問題
|
聯絡我們
|
版權所有 ©copyright 2000 All Rights Reserved