Hi
i have a grid that it has too many data,when i want to insert a row,it expand and width of my gird become double( like that it is in two pages) ,in this case my validators in second half don't work.
I make all of my validators with same method:
Please help me ASAP!!i really need to solve it.
i have a grid that it has too many data,when i want to insert a row,it expand and width of my gird become double( like that it is in two pages) ,in this case my validators in second half don't work.
I make all of my validators with same method:
| editors.Add((GridTextBoxColumnEditor)item.EditManager.GetColumnEditor(row["field_name"].ToString())); |
| cells.Add((TableCell)editors[editors.Count - 1].TextBoxControl.Parent); |
| regs.Add(new RegularExpressionValidator()); |
| editors[editors.Count - 1].TextBoxControl.ID = row["field_name"].ToString() + "_validation"; |
| regs[regs.Count - 1].ControlToValidate = editors[editors.Count - 1].TextBoxControl.ID; |
| regs[regs.Count - 1].ErrorMessage = "Please enter int"; |
| regs[regs.Count - 1].ValidationExpression = @"^\d+$"; |
| cells[cells.Count - 1].Controls.Add(regs[regs.Count - 1]); |