Hi,
I am dynamically creating multiple placeholder,label, gridview. The label and gridview are added to the placeholder. The placeholder is added to a common div.
I want to implement the collapse and expand functionality on the place holder. I am not using Ajax.
Is it possible to achieve?
My current code is as below: The below function is called multiple times, hence multiple gridview,placeholders are created:
private void InitGridView(string GridId, DataTable dt, string tableName)
{
GridView _grid = new GridView();
_grid.ID = GridId;
_grid.AutoGenerateColumns = false;
_grid.GridLines = GridLines.Both;
_grid.AlternatingRowStyle.CssClass = "alt";
_grid.RowStyle.CssClass = "GridRowStyle";
_grid.Attributes.Add("CssClass", "mgrid");
_grid.Alternati ...
Go to the complete details ...