Home Forums WinForms controls Xceed Grid for WinForms Bloating designer generated code Reply To: Bloating designer generated code

User (Old forums)
Member
Post count: 23064

The GridControl generates a lot of code, if you use the designer. I’ve had this problem too, and to solve it, I didn’t use the designer: I initialized and added the GridControl in code. You get a lot of private variables, because a variable is created for each element in the GridControl: 1 for each row (DataRowTemplate, InsertionRow, …), 1 for each column, 1 for each cell in the DataRowTemplate, 1 for each cell in the InsertionRow, 1 for each cell in the ColumnManagerRow, …

Imported from legacy forums. Posted by Tommy (had 247 views)