Hi,
I've added a checkbox column in the ultragrid using grid designer, the problem is that the cell click event is behaving abnormally as i'am trying to toggle the checkbox state,and its not firing events related to cell like cell change , cell update events as desired, mean to say that some times checkbox changes state but no event get fired and sometimes all concerned event get fired .Do any body has any idea what should be the cause of the problem??
Hello Mike
I need to add checked cell value to Datatable.My code is below.But every time when I check cell it add only selected cell value.Currently selected.Not all selected cells values.May be problem in event(cell_change)?Help please.
private void ultraGrid3_CellChange(object sender, CellEventArgs e)
{ DataTable dt = new DataTable();
dt.Columns.Add("Fields",typeof(String));
DataRow row = dt.NewRow();
row[0] =e.Cell.Row.Cells["Selected_Fields"].Value.ToString();
dt.Rows.Add(row);
return dt;
this.ultraGrid4.DataSource = dt;
}
Thanks in advance
Hello wanderingmystic,
Did you try this? If it did not help could you please provide a small sample project which reproduces the issue, I will be happy to take a look at it and assist you further.
Hi [wanderingmystic],
Mike is right. Actually I had forgotten to add this line of code to my designer.cs to hook the event.
ugA is the name of the ultrawingrid & ugAAA_CellChange is the method where cellchange event is written
this.ugAA.CellChange +=new Infragistics.Win.UltraWinGrid.CellEventHandler(ugA_CellChange);
Hope this will help!
Mike Saltzman"] Hi, The CellChange event of the grid fires when you change anything in any cell of the grid. This includes clicking on a CheckBox in a grid cell. If the event is not firing, then my guess is that the event is simply not hooked up properly in your application.
The CellChange event of the grid fires when you change anything in any cell of the grid. This includes clicking on a CheckBox in a grid cell.
If the event is not firing, then my guess is that the event is simply not hooked up properly in your application.
I'm experiencing the same problem. I'm clicking a check box in my grid and my properties aren't being updated unless you click on another cell and the cell change event is not firing at all. Perhaps you could direct us to an example of the "Proper" way to hook this up?