ok, here is the sample application. Here you can see that I am creating a checkbox validation and then I have a procedure to find the value of the checkbox. The problem here is that if I unckeck the checkbox and click the button to parse the grid I am still shown that the value is true even though I unchecked it.
I need to be able to access the values server side or somehow refresh the grids data before validating the cell's value.
Here is the mockup code.
protected void Page_Load(object sender, EventArgs e)
{
GridWeb1.ForceValidation = true;
if (!IsPostBack)
{
GridWeb1.WebWorksheets.Clear();
GridWeb1.WebWorksheets.Add();
//set sheets selectedIndex to 0
GridWeb1.WebWorksheets.ActiveSheetIndex = 0;
WebWorksheet sheet = GridWeb1.WebWorksheets[0];
WebCells cells = sheet.Cells;
WebCell cell = cells["A1"];
cell.CreateValidation(ValidationType.CheckBox, true);
cell.PutValue(true);
}
}
protected void ParseGrid_Click(object sender, EventArgs e)
{
WebWorksheet sheet = GridWeb1.WebWorksheets[0];
WebCells cells = sheet.Cells;
WebCell cell = cells["A1"];
Response.Write("Cell Value: " + cell.Value.ToString());
}