Hello,
1) I noticed that if I set GridView.DataKeyNames to a field that actually isn’t defined as primary key in data source, data source control ( or perhaps GridView?) will somehow know that field set in DataKeyNames isn’t really a primary key. I became aware of that fact when I opened Configure the Select Statement window ( via GridView’s Smart Tasks pop up --> Configure Data Source --> Configure the Select Statement window --> Advanced) and window had both radio buttons disabled.
a) So how did Asp.Net “figure it out” that field set in DataKeyNames is not actually a primary key?
b) Also, shouldn’t it be up to programmer to set DataKeyNames to whatever field she chooses to, even if that field is not defined as primary key in a data source?
thanx