Hi James,
1) How can I write to any cell or range of cells from out the ggc, for example, from a button click event?
>>>>>>
Use the TableModel indexer property to write the cell from button click event. Please try the code snippet.
foreach(GridRangeInfo info in this.gridGroupingControl1.TableModel.SelectedRanges)
{
for(int i = info.Top ;i <= info.Bottom ;i++)
for(int j = info.Left ;j <= info.Right ;j++)
this.gridGroupingControl1.TableModel[i,j].Text ="Yes";
}
2) Floating...
>>>>>>
There is no built-in support for this. But one way you can do this by handling the TableModel.QueryCoveredRange event and set the e.Range to overflow range in a grid. Here is a code snippet
private void TableModel_QueryCoveredRange(object sender, GridQueryCoveredRangeEventArgs e)
{
GridTableModel tm = sender as GridTableModel;
if( e.ColIndex + 1 < tm.ColCount && tm[e.RowIndex,e.ColIndex + 1 ].Text == string.Empty )
{
e.Range = GridRangeInfo.Cells(e.RowIndex,e.ColIndex,e.RowIndex,e.ColIndex + 1);
e.Handled = true;
}
}
Here is a sample.
GGCFloatCellANDWrite.zipBest regards,
Haneef