Posted 10 September 2017, 11:33 am EST
I have a Grid View bound to a data source on my web page. I can filter by values just fine, but when I do any action that submits the page, I get the wrong rows returned in the Rows collection. For example, if I filter 100 rows by a value that will give me 10 rows, and then click a button for submit, I get a gridview.rows collection with the first 10 rows, but they are the first 10 rows of the data source.
Here is the code I'm using:
protected void bn1_click(object sender, EventArgs e)
foreach (C1GridViewRow GR in C1GridView1.Rows)
string value = GR.Cells.Text;
The problem is that the data I'm parsing is from the first row in the UNFILTERED data table and each addition row is the next in the UNFILTERED data table to the COUNT of the filtered rows.
Am I doing something wrong?
I am using version 3.5.20101.72 of the C1.Web.UI.3.dll.