Hi,
I have a SFDataGrid, I want my rows to be Height of 50 to start. I have a column that is a switch and once switched I want that row to grow to 100 height.
I've got it wired up to a way that I think will work, but the row doesn't grow immediately, it requires I scroll it out of view and back into view before it will then again look to update the height to 100. How can I force fire the QueryRow height without requiring me to scroll the item off screen then back on again? I tried accessing the SfDataGrid.RowCollection but it seems to be empty.
Here's what my code looks like, I'm keeping a dictionary to know which items need to have height 100.
private void datagrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) {
if (PCDictionary.ContainsKey(e.RowIndex)) {
e.Height = PCDictionary[e.RowIndex];
}
else if (e.Height == 50) {
//do nothing
}
else {
e.Height = 50;
}
e.Handled = true;
}