unable to resize drop down grid

Hi,
I am having a control where I am using DropDownGrid cell and on click of the drop down I am opening a new grid by overriding DropDownContainerShowingDropDown method.

When I try to resize the child grid, it disappears. If on the other hand I select a cell in the child grid and then resize it, then it works.

Any ideas what is wrong?
the following properties of the child grid are set:
grdAllocations.Model.ReadOnly = true;
grdAllocations.Model.Options.ListBoxSelectionMode = SelectionMode.MultiExtended;
grdAllocations.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
grdAllocations.AllowSelection |= GridSelectionFlags.AlphaBlend;
grdAllocations.AllowResizeToFit = false;
grdAllocations.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(grd_PrepareViewStyleInfo);
grdAllocations.CellDoubleClick += new GridCellClickEventHandler(grdTradeView_DoubleClick);
grdAllocations.PushButtonClick += new GridCellPushButtonClickEventHandler(grdTradeView_PushButtonClick);

2 Replies

MF Meera Fathima Syncfusion Team August 18, 2007 06:58 AM UTC


Hello Vinod,

Thanks for your interest in Syncfusion products.

I have tried your condition that you have mentioned here in the Grid.Windows\Samples\2.0\DataBound\GDBGwithDropGrids sample by including the code snippet that you have sent for the child grid. And I was not able to reproduce the issue. The child grid gets resized without any problem.

I have attached the sample that I have used for testing with this post. You can get the sample in the following link - http://websamples.syncfusion.com/samples/Grid.Windows/F67352/main.htm

I am also sending you the video clip for your reference - http://www.syncfusion.com/Support/user/uploads/F67352_f6cc1092.zip.

Please look into the above details and modify the sample to reproduce the issue if you still finds any issue with this. Dont hesitate to contact us if you have any questions. We will be glad to assist you.

Best Regards,
Meera.

Syncfusion, Inc.
http://www.syncfusion.com/


DC Donnamay Cruz June 8, 2010 12:38 PM UTC

I am using the DropDownGrid control from the sample, version is 4.3.0.30.

How do I force the size of this DropDownGrid control so that it would have the same width as the cell it was expanded from. I saw a sample using DropDownContainerShowingDropDown method but it was resizing the control based on parent grid.

Loader.
Up arrow icon