Displays editable text information from a FwTextBox in a DataGridView control.
Наследование: System.Windows.Forms.DataGridViewTextBoxCell
Пример #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Adds the TsString to the given cell.
        /// </summary>
        /// <param name="ws">The HVO of the writing system.</param>
        /// <param name="flid">The flid of the property to display.</param>
        /// <param name="iRow">The index of the row in which to place the control.</param>
        /// <param name="iCol">The index of the column in which to place the control.</param>
        /// ------------------------------------------------------------------------------------
        private void AddStringToCell(int ws, int flid, int iRow, int iCol)
        {
            FwTextBoxCell cell = Rows[iRow].Cells[iCol] as FwTextBoxCell;

            if (cell != null)
            {
                cell.Value = m_cache.GetMultiStringAlt(m_hvoRootObject, flid, ws);
            }
        }
Пример #2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Adds the TsString to the given cell.
        /// </summary>
        /// <param name="ws">The HVO of the writing system.</param>
        /// <param name="flid">The flid of the property to display.</param>
        /// <param name="iRow">The index of the row in which to place the control.</param>
        /// <param name="iCol">The index of the column in which to place the control.</param>
        /// ------------------------------------------------------------------------------------
        private void AddStringToCell(int ws, int flid, int iRow, int iCol)
        {
            FwTextBoxCell cell = Rows[iRow].Cells[iCol] as FwTextBoxCell;

            if (cell != null)
            {
                cell.Value = PropertyDataSource.GetMultiStringAlt(flid, ws);
            }
        }