StrataFrame Forum

Checkboxes selected by default is listview...

http://forum.strataframe.net/Topic9856.aspx

By StarkMike - 6/29/2007

I'm using a StrataFrame Listview and filling it by PopulationDataSourceSettings. Is there any way I can have the checkboxes checked property set to true when its being filled?
By Larry Caylor - 6/30/2007

I could be missing something since I haven't been using checkboxes on the SF listview, but it looks like the only way to initialize the checkboxes is to loop through the listview items collection and set each item's checked property to true after populating the listivew. For some reason the checked property for a row is not included in the listview RowPopulating event arguments, where you would normally set properties on a row.
By Trent L. Taylor - 7/2/2007

Larry is correct and this is the same approach that we use ourselves.  It is actually less complicated to just cycle through the items and set the Checked property.  Just FYI, there is a CheckedItems collection on a ListView that you can cycle through to get just the items that are checked whenever you are doing something with the checked items.
By StarkMike - 7/2/2007

Thanks guys. I appreciate the advice.