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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

HTML in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

72419 Mar 18,2008 04:38 PM UTC Mar 8,2018 12:40 PM UTC WinForms 4
loading
Tags: GridControl
Scott Griswold
Asked On March 18, 2008 04:38 PM UTC

Hello,

I have three questions:
1. Can a grid cell be rendered in HTML that will allow for different font sizes and colors?
2. If this cannot be done then can a single cell be rendered with different fonts and sizes?
3. Can a link be embedded in a cell next to other text?

Thanks,





Administrator [Syncfusion]
Replied On March 18, 2008 06:55 PM UTC

Hi,

Thank you for using Syncfusion products

you can able to cancel the edit mode by use of below code snippet.

GridGroupingControl
-------------------
void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)
{
int col= e.TableControl.CurrentCell.ColIndex;
int row = e.TableControl.CurrentCell.RowIndex;
if (col == 3 && row == 3)
{
e.Inner.Cancel;
}
}

GridControl & GridDataBoundGrid
-------------------------------
void Grid1_CurrentCellStartEditing(object sender, CancelEventArgs e)
{
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;

int col = cc.ColIndex;
int row = cc.RowIndex;
if (col == 3 && row == 3)
{
e.Cancel;
}

}

Please let me know if you need any assistance

Best regards,
Johnson



Administrator [Syncfusion]
Replied On March 18, 2008 07:58 PM UTC

Hi Scott ,

My apologies for addressing to the wrong person, it was meant for you.

Issue 1 ( Possible to render from html) :
>>>>>
This can be achieve by using the xhtml cell type in a grid. Please refer to the XHTML below sample for more details.

C:\Documents and Settings\(user name)\My Documents\Syncfusion\EssentialStudio\6.1.0.34\Windows\Grid.Windows\Samples\2.0\CustomCellTypes\XHTML Cells

Issue 2(Multiple text size and font color in single cell) :
>>>>>

You can do this by using custom cell types in a grid. Please refer the attached sample that works fine in editing and saving the changes to the RichText cells. To format the edited text in the RichText cells, right click on the cell to get a contextmenu and select font to set the formatting needed.

Here is a sample
http://websamples.syncfusion.com/samples/Grid.Windows/I37249/main.htm

Issue 3( link be embedded ):
>>>>

Please refer the browser samples under this category. It creates a custom cell type that has a LinkLabel in a cell.

{Installed Drive}:\Documents and Settings\{UserName}\My Documents\Syncfusion\EssentialStudio\6.1.0.34\Windows\Grid.Windows\Samples\2.0\CustomCellTypes\LinkLabelCells\

{Installed Drive}:\Documents and Settings\{UserName}\My Documents\Syncfusion\EssentialStudio\6.1.0.34\Windows\Grid.Windows\Samples\2.0\CustomCellTypes\DerivedCellControlTutorial\

Kindly let us know if you need any further assistance.

Best regards,
Johnson




Vinay V
Replied On March 8, 2018 09:28 AM UTC

Hi,

Thank you for using Syncfusion products

you can able to cancel the edit mode by use of below code snippet.

GridGroupingControl
-------------------
void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)
{
int col= e.TableControl.CurrentCell.ColIndex;
int row = e.TableControl.CurrentCell.RowIndex;
if (col == 3 && row == 3)
{
e.Inner.Cancel;
}
}

GridControl & GridDataBoundGrid
-------------------------------
void Grid1_CurrentCellStartEditing(object sender, CancelEventArgs e)
{
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;

int col = cc.ColIndex;
int row = cc.RowIndex;
if (col == 3 && row == 3)
{
e.Cancel;
}

}

Please let me know if you need any assistance

Best regards,
Johnson



I agree

Sindhu Nagarajan [Syncfusion]
Replied On March 8, 2018 12:40 PM UTC

Hi Vinay, 
  
Thanks for the update.  
  
Please let us know if you need any technical assistance. 
  
Regards, 
Sindhu 


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.

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

;