Hi Aiqum,
Issue 1: FocusRectanlge and selection.
To show the FocusRectangle for GroupCaption cell in a grid, You need to can set the the Enabled property of GroupCaptionCell to TRUE. Below is a code snippet.
if(e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionSummaryCell || e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell )
{
GridGroupingControl grid = sender as GridGroupingControl;
GridCaptionRow gcr = e.TableCellIdentity.DisplayElement as GridCaptionRow;
//get value of first group
if(gcr.ParentGroup !=null )
{
e.Style.CellType = "Static";
e.Style.Enabled = true;
e.Style.ReadOnly = true;
GridTableControl tc = grid.GetTableControl(e.TableCellIdentity.Table.TableDescriptor.Name);
if( e.TableCellIdentity.RowIndex != tc.CurrentCell.RowIndex)
e.Style.BackColor = Color.AliceBlue;
else
e.Style.BackColor = grid.TableOptions.SelectionBackColor;
}
}
Are you using the Cell based selection technique? If so, you can add the selected range in a GridTableModel in CurrentCellActivating event.
e.TableControl.Model.Selection.Add(GridRangeInfo.Row(cc.RowIndex));
Currently there is no support for this in the Record based selection technique. But you can color cell using the QueryCellInfo event. Please refer the attached sample for more detail.
Sample :
http://www.syncfusion.com/Support/user/uploads/LastrecUpdateSummaryNavigate_fc07bfc6.zipSee the KB for selection Types :
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=344Issue 2: GridFindDialog.
There is no built-in support for searching the GroupCaption text in a grid. If you want to search the GroupCaption text in a grid, you can do this by creating the HashTable or Arraylist and add the all caption text to the list for searching text in the grid.
Thanks,
Haneef