I'm trying to display selected columns from a datatable in an ultralistview.
When I left out the guid key, it errored with duplicate key values.
The allowduplicates is read only and I'm not clear how to add the key and hide it from display.
I'm viewing the data in Detail mode and adding the data value as subitems.
Thanks,
Rick
Hello Rick,
Thank you for contacting Infragistics.
Is there a reason you're using the UltraListView for this? A much easier option would be to bind the DataTable to an UltraGrid, handle the UltraGrid.InitializeLayout event, and hide any columns you don't want visible.
Using the Grid seemed like overkill.
I am now using the Grid, set the datasource to my datatable, and am hiding the columns I don't want. That works ok.
e.leI want to be able to check multiple columns though, so I inserted a new column of type bool.
When I check one row, it unchecks the other.
Is there a property to let me select multiple checkboxes?
Thank you for the sample project.
As it turns out, the code you had in InitializeRow was running every time a row was initialized; when the row is first added and when it is updated. If you add a check to make sure e.ReInitialize isn't true, any checkbox you check will remain checked.
I did reproduce the issue in a test app and have attached it.
What I am trying to accomplish is to allow for multiple rows to be checked.
When I check the second row, it unchecks the first row.
Thank you for your response.
Can you provide a sample project demonstrating the checkbox issue? The default behavior of the grid is to allow you to check multiple checkboxes in a boolean column.
Once you've zipped up the folder containing the project, you can switch to the "Options" tab when creating a post and attach the file.