Hi,All
I have problem to get more than one hidden field value in GridView.I am able to get one Hidden Field Value vy the DataKeyNames,BUt how to get More the one hidden Field Value in my code behind.Please Help me out.Thanks
Regards
Arshad Khan
Hi,All
I have problem to get more than one hidden field value in GridView.I am able to get one Hidden Field Value vy the DataKeyNames,BUt how to get More the one hidden Field Value in my code behind.Please Help me out.Thanks
Regards
Arshad Khan
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rakrus106 reputationPosted Feb 7, 2008, 1:48 AM EST
1.Set DatakeyNames="key1,key2..";
ICollectionObj=grdObj.Datakeys[0].values
iterate the ICollectionObj and you will get the required values...
ArshadRank #2,492 · 564 reputationPosted Feb 7, 2008, 2:37 AM EST
Hey still its not clear,by the way i am doing some thing like that
For
i As Integer = 0 To grdView.Rows.Count - 1If
grdView..DataKeys(grdView.Rows(i).DataItemIndex).Values(0) Then CType(grdView.Rows(i).FindControl("chkEdit"), CheckBox).Visible = False CType(grdView.Rows(i).FindControl("chkDelete"), CheckBox).Visible = False End IfNow i here i want to acces the Second key how i will do that,here i am disabling the checkbox in the GridView As per the Kays.i hope you got that.Plz tell me
Regards
Arshad Khan