Hi,
I'm trying to append a checkbox column to an existing grid/datasource (such that users can multi select via checking/unchecking). However, I'm having some problems.
I've attached a sample project. If you run it, you'll see that the checkbox column has been added correctly. Checking/unchecking different item works too. However, if you click on any one of the label header (sort), all the checkbox selections disappear.
Another problem that I'm facing (on Windows XP) is that if you run the application without resizing the window, scroll all the way down with the mouse wheel, then scroll all the way up again, and (in my case) the scroll bar disappears.
Please help.
Thanks
Other posts that I'm waiting for some sort of reply (let alone help):
http://forums.infragistics.com/forums/t/12826.aspx
http://forums.infragistics.com/forums/t/12152.aspx
Also, this post might help in your situation:
http://blogs.infragistics.com/blogs/joshs/archive/2008/06/16/putting-a-checkbox-in-the-cells-of-an-unboundfield-of-xamdatagrid.aspx
Hi Josh, thanks for the reply!!!
I've fixed my problem... well, I *think*. What I've done was manually added a new column to my DataTable as well as a new field into the Xam grid. This way, I was no longer having problems with my checkbox selections disappearing.
As for changing the record selector column into a column of checkboxes, I never knew that was possible, so thanks! Would come in really handy.
Was wondering if I can do this with custom data types though? Eg, I might have a DataEntry class (assuming that I've no idea what/how many properties are being exposed and how they're implemented. Could be a list of values representing multiple columns, or a dictionary, or normal properties), and I'd like to add a checkbox to it. If I were to encapsulate this into a new class (eg, SelectableDataEntry) with a IsChecked/IsSelected property, I'd be ending up with a nested structure. And that's what's going to be displayed by the Xam grid.
Any thoughts on that?