Click here to Skip to main content
15,923,087 members

Comments by Diana Tsax (Top 6 by date)

Diana Tsax 7-Oct-13 7:51am View    
int firstNum = Convert.ToInt32(TxtFirstNumber.Text);
int secondNum = Convert.ToInt32(TxtSecondNumber.Text);
TxtAnswer.Text = (firstNum + SecondNum).ToString();
Convert it to string!!!!!!!!!!!!!!!!!!!!!!
Diana Tsax 4-Oct-13 6:34am View    
Sorry my mistake i miss to bind data before gettinf first and last row.
do it like this:
this.gdvData.AllowPaging = false;
this.gdvData.AllowSorting = false;
this.gdvData.EditIndex = -1;
// Let's bind data to GridView
this.RefreshGrid();
and then
GridViewRow FirstRow = gdvData.Rows[0];//getting 1st row of 1st page working fine
GridViewRow LastRow = gdvData.Rows[gdvData.Rows.Count - 1];//getting last row of last page is not works
this.gdvData.AllowPaging = true;
this.gdvData.AllowSorting = true;
this.gdvData.EditIndex = -1;
i try it and it works
Diana Tsax 4-Oct-13 6:09am View    
could you try to put this code :
this.gdvData.AllowPaging = false;
this.gdvData.AllowSorting = false;
this.gdvData.EditIndex = -1;
Before this
GridViewRow FirstRow = gdvData.Rows[0];//getting 1st row of 1st page working fine
Diana Tsax 2-Oct-13 7:28am View    
sorry i just remove some columns and i missed it.. here is my full code, you can delete whatever you don't need. In my code the first two columns are checkbox and textbox and the others are from db.
Diana Tsax 25-Sep-13 3:57am View    
You are welcome!