Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
private void btnUpdate_Click(object sender, RoutedEventArgs e)
{
IsUpdated = true;
Button btn = ((Button)e.OriginalSource);
var gh=btn.DataContext as Employee;

foreach (DataGridColumn col in dgCustomer.Columns)
{
if (Convert.ToString(col.Header).Contains("Combo"))
{
//here i need to get the combobox name
}
}

btn.Content = "Update";
dgCustomer.Columns[1].IsReadOnly = false;
dgCustomer.Columns[2].IsReadOnly = false;
dgCustomer.Columns[3].IsReadOnly = false;
dgCustomer.Columns[4].IsReadOnly = false;

}



I need to change the combobox IshittextVisible property when update button click in datagrid.

I'm not able to find the grid row in selectionchanged event or keydown event.
Posted

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