asp.net - GridView For Each -
I have a gridview that shows item details, I've added two template fields, one is a checkbox and the other is a textbox What is it that I want to check all the items is to buy a customer, and write the amount in the text box, when I click on a button, then I should check all rows in the gridview and when the checkbox is checked So give me its I do not want the values in the textbox in the Databended field of the GridView field, which is called the quantity and then continues my order function ...
I know that it seems very high, so Any kind of help is highly appreciated ..
If your question "How to do it again through the rows of gridview", then my answer is as follows: :
integer number = grid view 1. Rows. Calculation; {GridViewRow line = gridView1.Rows [i] for (int i = 0; i & lt; count; i ++); Checkbox cab = line FIDC control ("checkbox") as checkbox; // Check whether the check box is checked if (CB! = Null & CB check) {// logic here }}
Comments
Post a Comment