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

Detail Table view Rebind problem

2 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yasar
Top achievements
Rank 1
Yasar asked on 08 Feb 2012, 09:40 AM
Hi,


I am using radgrid detail table view, in the item command event i need to rebind the detail table view i'm using this command

e.Item.OwnerTableView.Rebind();

but it's through error can't find the column.

please help me for this issue.

Regards,
Yasar Arafath

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Feb 2012, 11:30 AM
Hello,

Try the following code snippet.
C#:
foreach (GridDataItem item in RadGrid1.Items)
 {
    GridTableView tableView = (GridTableView)item.ChildItem.NestedTableViews[0]; // rebind DetailTable of all item
    tableView.Rebind();
 }

Thanks,
Princy.
0
Yasar
Top achievements
Rank 1
answered on 08 Feb 2012, 11:37 AM
Hi prince,

Thank you for your reply,

in your code (GridTableView)item.ChildItem is null.

i'm not able to rebind.

Regards,
Yasar
Tags
General Discussions
Asked by
Yasar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Yasar
Top achievements
Rank 1
Share this question
or