This is a migrated thread and some comments may be shown as answers.

Null Reference Exception when RowStyle is custom

1 Answer 8 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Konstantin
Top achievements
Rank 1
Konstantin asked on 28 Mar 2011, 12:16 PM

I use custom RowStyle for RadGridView with my own format.
After upgrade to 2011 Q1 I receive NULL refernce exception in DefaultCellLocator class
in following method:
    
    [SuppressMessage("Microsoft.Performance""CA1822:MarkMembersAsStatic")]
    internal GridViewCell FindCellInRow(GridViewRow row, int cellColumnIndex)
    {
      if (((row != null) && (cellColumnIndex >= 0)) && (row.CellsPresenter != null))
      {
        return (((GridViewCellsPanel) row.CellsPresenter.ItemsHost).CellFromIndex(cellColumnIndex) as GridViewCell);
      }
      return null;
    }

This exception occurs when I select row.

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 31 Mar 2011, 09:39 AM
Hello Konstantin,

Thank you for reporting this issue. Could you please send us a sample project that will allow us to reproduce this issue?


All the best,
Milan
the Telerik team
Tags
GridView
Asked by
Konstantin
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or