winforms - Datagridview excessive memory usage -
i have unbound datagridview 175 columns , 50,000 rows, populated doubles. according calculations, equates memory usage of 175*50000*8 bytes = 70 mb. however, task manager says grid using 1.2 gb of memory - 17x overhead! can explain why it's consuming memory?
from msdn article on scaling datagridview ( http://msdn.microsoft.com/en-us/library/ha5xt0d9.aspx ) don't think i'm doing flagrantly wrong. i'm not setting styles or contextmenustrips individual cells. no modifications other populating cell values , setting format strings on column level.
i understand virtual mode or shared rows might decrease memory consumption, given above calculations, don't think should necessary. 17x overhead doesn't sound right me.
keep in mind each cell of datagridview holds datagridviewcell instance, containing 33 properties. it's more overhead double value.
Comments
Post a Comment