Ramco Ramco

Ramco Ramco

  • 441
  • 3.4k
  • 523.4k

Error - GridView' does not contain a definition for 'SelectedRows'

Jul 10 2022 2:38 PM

Hi

Error    CS1061    'GridView' does not contain a definition for 'SelectedRows' and no accessible extension method 'SelectedRows' accepting a first argument of type 'GridView' could be found (are you missing a using directive or an assembly reference?)    LMS    D:\GitHub\Admin\ReportSessionBooksPlanning.aspx.cs    263    Active
 

private void dataGridView1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            var value = grdPlanning.SelectedRows[0].Cells[0].ToString();
        }

Thanks


Answers (1)