get all row with checkboxcolumn checked

2 posts, 0 answers
  1. pcprogrammer9
    pcprogrammer9 avatar
    3 posts
    Member since:
    Sep 2019

    Posted 12 Dec 2019 Link to this post

    How I can loop through all row of my grid and detect only row with checkbox column checked ?

    i use this solution and got error :  

    -------------------------------------------------------------------------------------------------------

    Error:

    "System.NullReferenceException: 'Object reference not set to an instance of an object.'Telerik.WinControls.UI.GridViewCellInfo.Value.get returned null."
    -------------------------------------------------------------------------------------------------------

    Code:

    IList<GridViewRowInfo> gridRows = new List<GridViewRowInfo>();
    foreach (GridViewRowInfo rowInfo in radGridView.ChildRows)
    {
        bool isChecked = (bool)rowInfo.Cells["CheckboxColumn"].Value;
        if (isChecked == true)
        {
            gridRows.Add(rowInfo);
        }
    }

  2. Nadya
    Admin
    Nadya avatar
    370 posts

    Posted 13 Dec 2019 Link to this post

    Hello,

    Your question has already been answered in the thread (Ticket ID: 1445891) you have opened on the same topic. Please, see our answer there for more information.

    We kindly ask you to use just one thread for a specific problem to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two or more tickets instead of one. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.

    Thank you for your understanding.

    Regards,
    Nadya
    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