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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ArshadPosted Feb 7, 2008, 7:37 AM
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
RakrusPosted Feb 7, 2008, 6:48 AM
1.Set DatakeyNames="key1,key2..";
ICollectionObj=grdObj.Datakeys[0].values
iterate the ICollectionObj and you will get the required values...