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.

HTML in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

72419 Mar 18,2008 12:38 PM Mar 8,2018 07:40 AM Windows Forms 4
loading
Tags: GridControl
Scott Griswold
Asked On March 18, 2008 12:38 PM

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 02:55 PM

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 03:58 PM

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 04:28 AM

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 07:40 AM

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.

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.

;