Hi,
I am using Radgrid, I have to add tree in every row. Now i am trying to use following code
but here i can't find the value for id. So could please help me how to find the cell value in ItemDataBound.
Regards,
Sagar
I am using Radgrid, I have to add tree in every row. Now i am trying to use following code
| protected void RadGrid4_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridDataItem) |
| { |
| GridDataItem dataItem = (GridDataItem)e.Item; |
| RadTreeView treeview = (RadTreeView)data["Tree"].FindControl("RadTreeView1"); |
| int id= Convert.ToInt32(dataItem["CategoryID"].ToString()); |
| //Write query to select Name based on the category id for each treeview and populate Dataset |
| treeview.DataTextField = "Name"; |
| treeview.DataSource = dsSet; |
| treeview.DataBind(); |
| } |
| } |
but here i can't find the value for id. So could please help me how to find the cell value in ItemDataBound.
Regards,
Sagar
