HTML in grid
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,
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,
SIGN IN To post a reply.
4 Replies
AD
Administrator
Syncfusion Team
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
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
AD
Administrator
Syncfusion Team
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
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
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
SN
Sindhu Nagarajan
Syncfusion Team
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
SIGN IN To post a reply.
- 4 Replies
- 4 Participants
-
SG Scott Griswold
- Mar 18, 2008 04:38 PM UTC
- Mar 8, 2018 12:40 PM UTC