Checkbox default value
New DiscussionHi,
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 = myGrid.DisplayLayout.Bands[0].Columns.Insert(0, “Completed”);
completedColumn.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox;
foreach (Infragistics.Win.UltraWinGrid.UltraGridRow row in myGrid.Rows)
{
row.Cells[“Completed”].Value = false;
}
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
21 Created On
Apr 07, 2017 Last Post
9 years, 5 months ago