Actually, it occurs to me that you should probably add the extra column first like this:That will ensure that all rows contain False in that column by default, rather than NULL. NULL values would cause the loop I posted to throw an exception.vb.net Code:
myDataTable.Columns.Add("Selected", GetType(Boolean)).DefaultValue = False




Reply With Quote
