Hi,
I am adding a CheckBox column to my wingrid at runtime. How can I make it default to 'false' as opposed to the filled in square of 'null'? Right now I am looping through each cell and setting it to False. This is also marking the row as "edited". Does anyone know a better way? Here is my code so far:
Infragistics.Win.UltraWinGrid.UltraGridColumn completedColumn;
completedColumn.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox;
{
}
Hi Mike, I have facing one problem i Have a ultragrid with checkbox Problem is that when i have check 4 checkbox at coding level it show only 3 is checked 4th checkbox value return false i am not able get all checked box value. My code is that
1)i have check 4 checkbox.Its return only 3 is true and 4th checkbox is false
int i = 0; foreach (Infragistics.Win.UltraWinGrid.UltraGridRow row in billingPolicyGroupUltraGrid.Rows) {
foreach (Infragistics.Win.UltraWinGrid.UltraGridCell cell in row.Cells) {
if (cell.Column.Key == "SelectToProcess") { if ((bool)cell.Value) {//if checked return truei++;
can you provide any other solution to get all checked checkbox value
Setting the CheckBox state in AfterRowActivate is pretty simple:
billingPolicyGroupUltraGrid.ActiveRow.Cells["My CheckBox Cell"].Value = true;
I'm not sure what you mean by "call the cell change event". You can't call an event. That event fires when the contents of a cell in edit mode are changed by the user. So you can't make it fire programmatically. What you would typically do in such a case is move the code from that event into a method. Then call that code from the CellChange event and from anywhere else you want.
I am relay very appreciate with your reply Mike. I have one more question i want to check the chekbox on billingPolicyGroupUltraGrid_AfterRowActivate event and after that i want to call the cell change event is it possible. if yes please provide example.
Then you have to set the value of the cell in that row to true.
this.ultraGrid1.Rows[0].Cells["My CheckBox Column"].Value = true;
Thanks Mike,
Yes its unbound column but i want to check only one row at the run time. So please can you provide some example.