CGXGridCore::PasteTextRowCol
virtual BOOL PasteTextRowCol(ROWCOL nRow, ROWCOL nCol, const CString& str, UINT nFlags, const CGXStyle* pOldStyle);
nRow
Specifies the row id.
nCol
Specifies the column id.
str
A reference to a string which holds the text to be stored in the cell.
flags
Specifies the update technique. See UpdateStyleRange for more information.
pOldStyle
An optional pointer to an existing style object for the cell. PasteTextRowCol can use this object to determine information about the cell (e.g., input mask or read-only state) without having to gather the style information from the grid.
Return Value
TRUE if the text could be assigned to the cell; FALSE if the text was invalid.
Remarks
This virtual method is called from PasteTextFromBuffer to store the text in a specific cell. By default PasteTextFromBuffer will store the text by simply calling SetControlTextRowCol. If the text starts with an equal sign ('=') it will be treated as formula.
PasteTextRowCol will be called when you paste text from CF_TEXT clipboard format into the grid, or load data from a text file.
The default version of this method simply calls SetControlTextRowCol. Check this method for further information.
Control-Factory Specific ->
This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the ImplementTextDataExchange method from within the control factory class' InitializeGridComponents method will make the concrete implementation of this method available to your application.
If no concrete implementation is available this method returns FALSE. A warning will be displayed in the debug window.
END Control-Factory Specific
See Also
CGXGridCore::SetControlTextRowCol CGXGridCore::PasteTextFromBuffer