2 posts, 0 answers
  1. accdefault
    accdefault avatar
    1 posts
    Member since:
    Dec 2019

    Posted 21 Mar 2020 Link to this post



                    _dr ="id_village = '" + village["id"].ToString() + "' ");
                    if (_dr.Length > 0)
                        dgVillageRequestRes.DataSource = _dr.CopyToDataTable();
                        dgVillageRequestRes.Columns["id_village"].IsVisible = false;
                        dgVillageRequestRes.Columns["name"].IsVisible = false;
                        dgVillageRequestRes.Columns["priority"].ReadOnly = false; //DON'T WORK
                    else { dgVillageOper.DataSource = null; }


    I cannot edit cells in the Columns["priority"] column. Help fix!

  2. Nadya
    Nadya avatar
    504 posts

    Posted 23 Mar 2020 Link to this post


    Note that such a query will return a list of anonymous objects. These objects in the data table are read-only and this is why you can not edit them in the grid. You should change the value in the data source manually, execute the query again and rebind the grid.

    Please refer to the following msdn threads that might be quite useful on this topic:

    I hope this information helps. Should you have other questions I will be glad to help.

    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top