Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to hide a row of data from my datagrid that contains information from the class Credentials.

Is there any way to do this? Here is what I have tried, but in no way seem close:

foreach (DataGridRow DR in dgEmployeeInformation.Items)
{
    if (DR.Cell.Value == Credentials._eld.LoginID)
    {
        DR.Visible = false;
    }
}


My application won't start with the current code being used. If anyone can help, I would be extremely grateful! Thank you.
Posted

1 solution

hi.
i suggest use ValueConverter in wpf.
 
Share this answer
 

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