GridView Cell Content Not Selectable

Posted by: tlbradshaw on 10 September 2017, 11:33 am EST

  • Posted 10 September 2017, 11:33 am EST

    I am not able to highlight data from my GridView and use the Right-Click to copy the data to the clipboard.  I don't even get a "Copy" option when Right Clicking.

    This occurs both in IE 8 and Firefox 3.6.6.  I am using C1.Web.UI.3.dll Version 3.5.20101.72.

     I would like my users to be able to copy text from the cells to paste into the filter bar, but I cannot seem to get the cell content to select.  Is this a function of the CSS, or maybe the Z-index of the control? 


    I would settle for being able to double click a cell and have to GridView Filter by that value.



  • Replied 10 September 2017, 11:33 am EST


    you can set the SelectionMode property to "None", then you'll be able to select cell content and copy it via browser context menu.

    As an alternative you can implement copying of the current cell content by pressing a hotkey (Ctrl+Z in the sample below). In this case you do not need to turn off SelectionMode:

    <script type="text/javascript">

       function gv1_keydown(sender, e) {

           if (e.ctrlKey && e.keyCode === 90) {

               var currency;

               var grid = $find("GridView1");

               if (currency = grid.get_currency()) {

                   if (C1.Web.UI.Controls.C1GridView.C1BoundField.isInstanceOfType(currency.get_column())) {

                       var cellIdx = currency.get_cellIndex();

                       if (grid.get_rowHeader().get_visible()) {



                       var filterCell = C1.Web.UI.Controls.C1GridView.C1GridViewRowsAccessor.getCell(grid.get_filterRow(), cellIdx);

                       if (filterCell) {

                           var $testElement = $(filterCell).find(".C1TextBox");

                           if ($testElement.length) {

                               var c1InputCtrl = $find($testElement.attr("id"));

                               if (c1InputCtrl) {


                               } else { // just a textbox ?










    <c1g:C1GridView runat="server" ID="GridView1" onkeydown="gv1_keydown(this, event)" ... >





Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels