Monday, February 13, 2012

ERROR Both DataSource and DataSourceID are defined in Gridview

This error comes when you are trying Code behind model and direct connectivity at time to solve this Error...

1.In the code where you are trying to bind gridview with data source and using its databind to bind with the data before that place the following code.

GridViewName.DataSourceID="";

2. Which looks like this..

GridViewName.DataSourceID="";
GridViewName.DataSource=datasetobject;
GridViewName.DataBind();


for any query on tools error place the comment i will definitely try to solve it as quickly as possible ....

No comments:

Post a Comment