This is a migrated thread and some comments may be shown as answers.

Grid with only filtering visible initially

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RB
Top achievements
Rank 1
RB asked on 15 Jul 2014, 09:28 PM
I want a grid with only  column names and filtering option visible initially. Only when user click on a Search button, the rows will be displayed accordingly. How can I achieve this?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Jul 2014, 05:12 AM
Hi,

You can bind the Grid to an Empty DataSource initially as follows:

C#:
protected void Page_Load(object sender, EventArgs e)
{
  if (!IsPostBack)
  {
   RadGrid1.DataSource = String.Empty;
  }
}

Thanks,
Princy
Tags
Grid
Asked by
RB
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or