9 Mar 2012 13:18
DataGridView with Multiselect and Databinding doesn't work with Ctrl button
sharkal <wolfgang.ginner <at> kapsch.net>
2012-03-09 12:18:32 GMT
2012-03-09 12:18:32 GMT
Hi,
I have a DataGridView with Multiple Selection allowed and use Databinding to
add rows dynamically by SW.
The problem is, that the Multiple Selection in Linux doesn't work correctly,
when i use the Ctrl button to select the rows, but when i used the shift
button, multiple selection works correctly. When i use the Ctrl button, the
multiple selection only works, when i don't press into the datarow, but on
the left side of the datagrid.
I already verified, that the multiple selection with the ctrl button works
fine, when i don't use databinding and add the rows just so.
I think it's a very strange behavior ( shift works, but ctrl not ; without
databinding it works, but not with)
In Windows, the code works correctly.
Does anyone has an idea, how this could be ?
The code, when i do the databinding to the DataGridView is the following:
bindingSource.Clear();
if (bindingSource.DataSource == null)
{
bindingSource.DataSource = new
AdvancedList<TransceiverListItem>();
}
foreach (TransceiverListItem t in
_viewModel.TransceiverListItems)
{
if
(!((AdvancedList<TransceiverListItem>)bindingSource.DataSource).Contains(t))
{
(Continue reading)
RSS Feed