Click here to Skip to main content
14,735,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am having combobox inside each cell of an datagrid.the combobox is in cellediting template
and also having textblock which is in datatemplate.what i want now is when i select the item
from the combobox the selected item has to be pass to the textblock in the same cell.i tried
this code in combobox selection change will display the selected item in the next cell
if anyone knows how to do it help me.

for (int i = 0; i < attendancegrid.Items.Count; i++)
//ComboBox monday = (ComboBox)sender;
//TextBlock txt = FindVisualChildByName<textblock>(attendancegrid, "mon");
//txt.Text = monday.SelectedValue.ToString() + "/";

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900