forum

Home / DeveloperSection / Forums / Error on binding the grid with a list

Error on binding the grid with a list

Mark Devid 1707 26-Aug-2014
List<business.clspluginsprp> objprp = new List<business.clspluginsprp>();
business.clsplugins obj = new business.clsplugins();
for (Int32 i = 0; i < k.Length; i++)
{
   Int32 z =Convert.ToInt32(k.GetValue(i));
   objprp.Add(obj.fnd_plugins(z));
}
GridView2.DataSource = objprp;
GridView2.DataBind();

An error arrived which is as: 

The best overloaded method match for 'System.Collections.Generic.List.Add(business.clspluginsprp)' has some invalid arguments while the other error is : Argument 1: cannot convert from 'System.Collections.Generic.List' to 'business.clspluginsprp'


Updated on 26-Aug-2014

Can you answer this question?


Answer

1 Answers

Liked By