Devexpress網格視圖存儲庫checkedit自動取消選擇下一個單元的checkedit後立即取消選擇。如何使用Devexpress XtraGrid中的RepositoryItemCheckEdit實現多個單元格選擇?
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
ConnectDatabase()
loadv()
End Sub
Private Overloads Sub loadv()
Dim DataAdapter5 As New MySqlDataAdapter
Dim DataSet1 As New DataSet
DataSet1.Clear()
Dim str1 As String = String.Format("SELECT `id`, `Name` FROM `mydb`.`mytable` ORDER BY Name ")
DataAdapter5 = New MySqlDataAdapter(str1, conn)
DataAdapter5.Fill(DataSet1)
' GridControl1.RefreshDataSource()
' GridControl1.Refresh()
GridControl1.DataSource = DataSet1
With GridControl1
.DataSource = DataSet1.Tables(0)
End With
GridView1.BestFitColumns()
End Sub
這是我的網格視圖:
這裏是底層數據庫表:
如何實現多個小區選擇Passed
和ResultsPending
列?
您可以添加一個屏幕截圖與檢查編輯標記和未選中的複選框? – andrews
我已經在vb中創建了示例。net並上傳到谷歌驅動器上.https://drive.google.com/file/d/0B_JyyZZteh3eNnNRVUJ1TmRoSWs/view?usp = sharing – newcommer
在上面共享的.zip文件中添加了兩個截圖,名爲capture1和capture2 – newcommer