Search code examples
asp.netwinformsaspxgridview

add Web form Controls to Windows Forms


I have created a gridview in a web form and I need to create a windows form to display the gridview's output, the number of red colors and green colors in the gridview. Is it possible to draw a hidden web form gridview into a Windows form application? I have tried to add it programmatically by removing ".net Client profile" from Properties, but when I run the code, it gives error "Object not set to reference of instance" at the line "grdWebForm.DataBind();".

Thanks for any kind of help


Solution

  • I have successfully overcome the "Object not set to reference of instance" error. put grd.AllowPaging=false; and the error doesn't come