Click here to Skip to main content
16,010,544 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to upgrade an old application for work and I have gotten it right to add the new user to the database with linq and lambda but now how do I display the users from the database with out using a data table?
Posted
Comments
Hammad 20-Jan-14 5:28am    
Can you further explain your question..? what thing you use for showing data to the gridview now..e.g. List or somthing else and also write some existing code so we can help you to solve your problem..

1 solution

Basically now I use a data table but I was told not to any more.

C#
else if (enteredName.ToString() != selectedName.ToUpper() & newAllocated == false & requiredAllocatedFields() == true &
                nameMatch == false)
            {
                WriteToAllocatedTable("sp_UpdateAllocated", Convert.ToInt32(dGVAllocateds.Rows[iAllocatedRow].Cells[0].Value));
                populateAllocatedList();
                populateAllocatedCombobox();
                dGVAllocateds.Rows[iAllocatedRow].Cells[0].Selected = true;
            }
 
Share this answer
 
Comments
Kornfeld Eliyahu Peter 20-Jan-14 6:58am    
Wrong place!
It's not a solution but some additional info on your question - please move it into your question (improve question)...

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