I have a ASP.NET 2.0 Web application. I have a SQL Server 2000 Database as my backend. I'm using the gridview control with multiple key fields 9 to be exact. My question is what is the maximum number of key fields the gridview can hold in the DataKeyNames property.
The problem is when i update a record via the gridview I'm getting an error message saying you can't insert duplicate records. Its giving me the error because its not reading all of the Datakeys which is causing the error. Its reading say what ever the limit is an ignoring the final key which will cause the record to be unique.
Any suggestions on what is the maximum number of key fields the gridview can hold in the DataKeyNames property.
Start Free Trial