public void ToggleRowItem(object item)
        {
            tableDataSet.ToggleRowItem(item);
            if (selectedDataAdapters.ContainsKey(item))
            {
                return;
            }

            var tableDataAdapter = default(ITableDataAdapter);

            if (tableDataAdapters.Any())
            {
                tableDataAdapter = tableDataAdapterProvider.ConvertToDetailTableDataAdapter(
                    tableDataAdapters.First(), item);
            }
            else
            {
                tableDataAdapter = tableDataAdapterProvider.CreateCollectionTableDataAdapter(
                    item, gridConfiguration.ClrTypeCollectionProperties.First());
            }

            selectedDataAdapters.Add(item, tableDataAdapter);
        }
 public void ToggleRowItem(object item)
 => tableDataSet.ToggleRowItem(item);