This is a migrated thread and some comments may be shown as answers.

Problems with gridviewcomboboxcolumn - It deletes the selected option.

1 Answer 18 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Carlos Rodriguez
Top achievements
Rank 1
Carlos Rodriguez asked on 05 Jul 2010, 06:53 AM
Hello!

Select an item in the column of ComboBox. When I select another row, the previously selected item is deleted.
What's happening? Annex code here.
Thank you.

XAML:

<

 

TelerikGridView:RadGridView Name="radGriViePartidasPM" Grid.Row="2" Height="150"

 

 

                                                 ShowGroupPanel="False"

 

 

                                                 AutoGenerateColumns="False">

 

 

 

    <TelerikGridView:RadGridView.Columns>

 


        <

 

TelerikGridView:GridViewComboBoxColumn UniqueName="colBodOrigProducto" Header="Bodega"

 

 

                                                                                SelectedValueMemberPath="Clave"

 

 

                 
                                                               DisplayMemberPath
="Descripcion"/>

 

    </

 

TelerikGridView:RadGridView.Columns>

 

 

 

</TelerikGridView:RadGridView>

VB.NET

 


panPartidas.radGriViePartidasPM.ItemsSource = e.Result

 

DirectCast(Me.radGriViePartidasPM.Columns("colBodOrigProducto"), GridViewComboBoxColumn).ItemsSource = listadoBodegas

listadoBodegas is a List(Of CLBodega), CLBodega is an object with two properties: Clave and Descripcion

when I select an item from the combobox, how I can know which items are selected?

Thanks! =)

Atte: Carlos Rodríguez
Developer Freelance

1 Answer, 1 is accepted

Sort by
0
Carlos Rodriguez
Top achievements
Rank 1
answered on 05 Jul 2010, 06:18 PM
I found the problem

The problem was the type of data that gave the ComboBox column, I changed it to a list of string elements and works perfectly.
If anyone has any doubts on how to implement it can send me an email.

Thanks and greetings!
Tags
GridView
Asked by
Carlos Rodriguez
Top achievements
Rank 1
Answers by
Carlos Rodriguez
Top achievements
Rank 1
Share this question
or