hi
I have bound a value list to my grid's cell. Cel's width is 128 and the data in value list is
ValueList sites = new ValueList(); sites.DropDownListMinWidth = 800; sites.ValueListItems.Add("i love my country too much");
sites.ValueListItems.Add("New York");
sites.ValueListItems.Add("United States Of America ");
when i click the grid cell to see the data then only "New York" is fully visible first and third items are not visible fully. So please tell me the to increase the width of values list or at least apply the tool tip with the items of the value list.
Regards
Asad Naeem
Hi Asad,
I assume you mean that the items are cur off horizontally because the dropdown is not wide enough?
What event is this code in? The ValueList should be sizing to the widest item by default, I think. Although this behavior can probably be altered by setting the DropDownWidth property. You shouldn't have to do anything.
I tested this out and it works fine for me. If the list width is being limited by the width of the grid column, then it sounds like you are setting the DropDownListWidth to 0. You should not set this property, just leave it at the default, which is -1, and it will auto-size to the text regardless of the width of the column in the grid.