I am dynamically add the column for the datagrid,
Dim oName_Binding As Binding = New Binding("Order_Name")
oName_Binding.Mode = BindingMode.TwoWay
oName_Binding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged
Dim dgcombo As DataGridComboBoxColumn = New DataGridComboBoxColumn()
dgcombo.Header = "Order"
dgcombo.ItemsSource = lstOrder
dgcombo.TextBinding = oName_Binding
dgcombo.DisplayMemberPath = "Order_Name"
dgcombo.SelectedValuePath = "Order_ID"
dgv.Columns.Add(dgcombo)
I would like to add the button on Each Row. Please suggest me...
Aucun commentaire:
Enregistrer un commentaire