I have a grid that is tied to a datasource and it's just showing Databound Col0, Databound Col1 and Databound Col2 as the column headers. When I try to select a DataKeyField, the list is empty.
Hello Fred,
Thank you for the clarification regarding the circumstances.
Let me know if you experience again the issue with UltraWebGrid after simplifying your stored procedure.
I was trying to set the DataKeyFeld in the properties window...didn't try to do it programatically. I think I may have figured out why it was empty though. I think it's a problem with the stored procedure that I am running as the select. It's not just a simple "select x from x"...and when I make it that simple, it seems to work fine...the list displays what I would expect it to display. I am going to play around with that and see if I can simplify my stored procedure. Thanks for taking a look at this.
Have you set the DataKeyField property in the UltraWebGrid?
For example :
<igtbl:UltraWebGrid ID="ClientGrid" runat="server" DataKeyField="Col1" ..
Also can you tell me at what stage ot the grid lifecycle are you trying to get the DataKeyField?
Let me know if you have other questions.