Trigger silverlight datagrid to resize -
i have situation i'm using datagrid display 2 different sets of columns based on data being displayed. hide/display columns based on data , 1 type has more columns displayed. example of type of setup have is:
type1 columns: name, dob, address, height, weight, occupation, years experience.
type2 columns: name, dob, address, height, occupation, marital status, hair color, eye color, ethnicity.
my datagrid columns union of these 2 sets.
when display type1, 7 columns of equal width. when switch type2, set weight , years experience collapsed , set marital status, hair color, eye color, , ethnicity visible. first 3 columns retain width , last 6 columns scrunched down fit. know how trigger resize of columns?
edit: i'm using width="*" columns
call updatelayout on grid
Comments
Post a Comment