I have a Repeater and inside it a GridView. Now I want to to fire GridView‘s RowCommand. So can any one tell me how can it be?
I have a Repeater and inside it a GridView . Now I want to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What it sounds like you want to do is handle the
RowCommandevent in each of yourGridViews.One way to do this would be to create an event handler for the
ItemCreatedevent in theRepeatercontrol. In that event handler, you could then add theRowCommandevent handler to eachGridViewusing+=syntax. So, if yourRowCommandevent handler method is called “GridView1_RowCommand”, you could do this:Then, each time a
RowCommandevent is fired from one of yourGridViews, theGridView_RowCommandevent will be called.