Hi Ochieng,
We have an option to change cell type in grid grouping
control using CellType property. We suggest you to set CellType as 'PustButton'
to achieve your requirement. Please refer the below code snippets.
In Design Time:
<syncfusion:GridColumnDescriptor HeaderText="TempColumn"
MappingName="TempColumn">
<Appearance>
<AnyRecordFieldCell CellType="PushButton" />
</Appearance>
</syncfusion:GridColumnDescriptor>
Using QueryCellStyleInfo ( Changing CellType dynamically):
this.ggc1.QueryCellStyleInfo
+= new GridTableCellStyleInfoEventHandler(ggc1_QueryCellStyleInfo);
void ggc1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs
e)
{
if
(e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell
|| e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell)
{
if
(e.TableCellIdentity.Column.MappingName == "TempColumn")
{
e.Style.CellType = "PushButton";
}
}
}
Here is the documentation link:
http://help.syncfusion.com/ug/asp.net/grid/Documents/excellikeedit.htm
We have prepared a simple sample to demonstrate this and the
same can be downloaded from the below link.
Demo sample:
CellType.zip
Please let us know if you have any concerns.
Regards,
Bala Murugan A.S