Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 5 years ago.
Please suggest me how to create composite grid. ie , i need all the features of gridview in the Framework 3.5 and above,but also need to include some other functionality to that grid.please suggest me what to do . if possible please share sample code.
You need to extend the current GridView. Example:
public class MySuperGridView : GridView
{
public void CoolMethod()
{
}
public string CoolProperty
{
get{return ViewState["CoolProperty"]==null?null:(string)ViewState["CoolProperty"];}
set {ViewState ["CoolProperty"]=value;}
}
//add more coolness here
}
Now you can start using your custom Gridview instead of the standard asp.net GridView