We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Need Help in vritual grid

Thread ID:

Created:

Updated:

Platform:

Replies:

73759 May 16,2008 05:25 PM May 23,2008 11:57 AM Windows Forms 4
loading
Tags: GridControl
AshishSaxena
Asked On May 16, 2008 05:25 PM

Hi I am new to Syncfusion.. I want little help on virtual grid..

My program has one main virtual grid and every cell in the fourth coloumn of it contains multiple embedded virtual grid. Initiazation and assigning of data and embedded virtual grid is done at the run time. Inside Ondraw method of class TestDataCellRenderer : Syncfusion.Windows.Forms.Grid.GridGenericControlCellRenderer..
/////////////////////////////////////////////
protected override void OnDraw(Graphics g, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
{
if (this.ShouldDrawFocused(rowIndex, colIndex))
{
style.Control = embeddedGrid;
TestDataCellModel.InitializeGrid(embeddedGrid, style);// embeddedGrid.Value, ref Data, bStatus, readOnlyMode);
embeddedGrid.AcceptChanges();
currentDrawGrid = embeddedGrid;
}
else
{ style.Control = drawGrid; drawGrid.AcceptChanges(); TestDataCellModel.InitializeGrid(drawGrid, (TestData)style.CellValue, ref Data, readOnlyMode);
currentDrawGrid = drawGrid;
}////////////////////////////////////////////

Problem is

I need to synchronize the scrolling behaviour of all the embedded virtual grid.

I have seen the syncronizing scrollbar solutions but that are cases when we are adding virtual grids at design time..


I hope I am able to clear my problem.

If its possible please give me the link of the similar sample or a Test sample..

Thanks in advance
Ashish


Administrator [Syncfusion]
Replied On May 21, 2008 09:58 AM

Hi Ashish,

Thanks for the interest in Syncfusion Grid.

You can share the scrollBar in an embedded virtual Grid. Please refer the sample in the below link that shows sharing the scrollbar of the Virtual grid with an embedded virtual Grid.

http://websamples.syncfusion.com/samples/Grid.Windows/F73759/main.htm

If I have misunderstood your requirement, could you please explain me in detail, so that I can work in depth and try to send a better solution?

Regards,
Asem.



Ashish Saxena
Replied On May 21, 2008 10:22 AM

Hi Asem,

Thanks for the reply.Actually the fourth coloumn of each cell of the main grid contain only one embedded virtual grid and that too is visible to the user ( sorry for the miscommunicaton). I want all the embedded grids added at runtime rather then design time.

In this scenario I want all the scroll bars of embedded grid syncronized with each other.

Ashish
>Hi Ashish,

Thanks for the interest in Syncfusion Grid.

You can share the scrollBar in an embedded virtual Grid. Please refer the sample in the below link that shows sharing the scrollbar of the Virtual grid with an embedded virtual Grid.

http://websamples.syncfusion.com/samples/Grid.Windows/F73759/main.htm

If I have misunderstood your requirement, could you please explain me in detail, so that I can work in depth and try to send a better solution?

Regards,
Asem.





Administrator [Syncfusion]
Replied On May 22, 2008 09:08 AM

Hi Ashish,

Thanks for your quick response.

I am afraid that I was not able to reproduce the issue. I have modified the sample and added the embedded virtual grid at runtime and still the scroll bars of embedded grid synchronized with each other. The sample is available in the below link.

http://websamples.syncfusion.com/samples/Grid.Windows/F73759C/main.htm

Please have a look at the above sample and if still the issue exists, could you please try to modify the sample to reproduce the issue in the sample so that we could sort out the cause of the issue and provide you a solution?

Regards,
Asem.



Ashish Saxena
Replied On May 23, 2008 11:57 AM

Hi Asem,

I don't want dropdown embedded grids but instead it should be visible to the user.
Please find the pic attached.

Thanks
Ashish

>Hi Ashish,

Thanks for your quick response.

I am afraid that I was not able to reproduce the issue. I have modified the sample and added the embedded virtual grid at runtime and still the scroll bars of embedded grid synchronized with each other. The sample is available in the below link.

http://websamples.syncfusion.com/samples/Grid.Windows/F73759C/main.htm

Please have a look at the above sample and if still the issue exists, could you please try to modify the sample to reproduce the issue in the sample so that we could sort out the cause of the issue and provide you a solution?

Regards,
Asem.






Pic.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;