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

RadGrid Binding Problem

1 Answer 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Susi
Top achievements
Rank 1
Susi asked on 09 Jul 2012, 12:09 PM
Dear All,

I have RadGrid in my page here when i binding my grid not data displaying in grid.but i can get data and there showing count and data everything but i cant showing that in grid..what i missed .. my code is

Thanks in Advance..!
protected void Page_Load(object sender, EventArgs e)
        {        
            if (!Page.IsPostBack)
            {
                RadGrid1.DataSource = applicationProcess.SelectLocations();
                RadGrid1.DataBind();
            }
}

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Jul 2012, 01:34 PM
Hello Susi,

After inspecting your code, I guess that you are binding the RadGrid in page load. But you won't get the grid to display data for the first time since you have setting grid datasource inside the if condition(!ispostback). Try binding the grid using its NeedDataSource event.

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