In asp.net, i have a window form with datagridview which having two column empid, firstname + lastname. My question is, how to display lastname underneath firstname in the same column? Also, how to apply different color to firstname & lastname
There's a variety of ways to accomplish this, you can use:
Public string FullName
{
get
{

return FirstName + " " + LastName}
}
or
string fullName = String.Concat(LastName, " ", FirstName);
Hopefully this has helped..
Public string FullName
{
get
{

return FirstName + " " + LastName}
}
or
string fullName = String.Concat(LastName, " ", FirstName);
Hopefully this has helped..