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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Scrollable Cell

Thread ID:





47719 Aug 10,2006 04:12 PM UTC Aug 11,2006 06:47 AM UTC WinForms 1
Tags: GridControl
Sivaiah Boppana
Asked On August 10, 2006 04:12 PM UTC

I need to make a cell scrollable, I am using the following code to achieve this

private void mmpGrid_TableControlPrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlPrepareViewStyleInfoEventArgs e)
GridCurrentCell cc = this.mmpGrid.TableControl.CurrentCell;
for(int count=0;count {
if(e.TableControl.TableDescriptor.Columns[count].MappingName=="psummary" )
e.Inner.Style.Enabled =true;
e.Inner.Style.AllowEnter = true;
e.Inner.Style.WrapText = true;
e.Inner.Style.VerticalScrollbar = true;
e.Inner.Style.TextColor =Color.Red ;

e.Inner.Cancel =true;



But it works downward only, if I click from top to bottom cells it works properly , if I change the order of clicks it is not showing scroll in the cells except the first cell. Please let me know the solution

Administrator [Syncfusion]
Replied On August 11, 2006 06:47 AM UTC

Hi Sivaiah,

By setting the style.wraptext = true and the style.VerticalScrollbar = true in the QueryCellStyleInfo event handler, a vertical scrollbar will appear as you edit the cell. You need to have sufficient row height, to see the text getting wrapped in the cell.
Try the attached sample, that works fine in displaying the vertical scrollbar properly when the cell content is one more than one line tall.

Here is a sample

Let me know if you need any further assistance.
Thanks for using Syncfusion Products.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon