Hi,
For convenient, I always add every Bound Column's UniqueName to List of DataKeysNames. I wonder if, under this scenario, will it ever cause any exception in anyway?
For example, my grid bind to a DataTable with Columns: FirstName, LastName, Age. Then I'll set the DataKeyNames property as FirstName, LastName, Age.
The reason I ask this is because somehow I got some strange exception and I'm not sure if it is related to the fact that I add every Bound Columns to DataKeyNames.
I heard that it may cause exception in the table has two or more identical rows, but I've tested and it didn't cause exception at all.
Thanks
Lamk.
For convenient, I always add every Bound Column's UniqueName to List of DataKeysNames. I wonder if, under this scenario, will it ever cause any exception in anyway?
For example, my grid bind to a DataTable with Columns: FirstName, LastName, Age. Then I'll set the DataKeyNames property as FirstName, LastName, Age.
The reason I ask this is because somehow I got some strange exception and I'm not sure if it is related to the fact that I add every Bound Columns to DataKeyNames.
I heard that it may cause exception in the table has two or more identical rows, but I've tested and it didn't cause exception at all.
Thanks
Lamk.