Think it's working now..
Changed:
sbCallDetail.Append(gvCallDetails.Rows[i].Cells[0].Text + ',');
To:
sbCallDetail.Append(Convert.ToString(gvCallDetails.DataKeys[i][0]) + ',');
And now I'm able to retrieve the values of CallDetailID
In the gridview (enableviewstate = false), the first column is a boundfield having a DataField = "CallDetailID" and the second column is a checkbox (enableviewstate = false), and there are other columns.
The code-behind for a button on the page goes through all the checkboxes that are selected...
I have added a scrollbar (<div style="OVERFLOW: auto; HEIGHT: 250px">) to my gridview so that if the PageSize exceeds 10 rows the user can use the scrollbar. The width of the table that embeds the gridview is 925px and the width of the gridview is 912px where 13px is being left for the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.