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

mastertableview item count is showing zero at needdatasource event

1 Answer 177 Views
Grid
This is a migrated thread and some comments may be shown as answers.
digish devassy
Top achievements
Rank 1
digish devassy asked on 27 Mar 2012, 12:09 PM
Hi

mastertableview item count is showing zero at needdatasource event. I wanted to get the checked checkbox count at this step. But the item count is zero which prevents looping.

thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Mar 2012, 12:56 PM
Hi Digish,

It is not possible to get the item count in NeedDataSource event. Try the same in PreRender event.

C#:
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
  int count = RadGrid1.Items.Count;
}

Thanks,
Shinu.
Tags
Grid
Asked by
digish devassy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or