i have gridview like this...........
mobile names area
901448765 srinivas , venkat hyd
987654321 raju , vamshi ,sunder hyd
954326788 shashi ,samatha,prashanthi hyd
i want output like this...................................
how to select names coloum in first name ....
how to select only fistname like...
srinivas
raju
shashi
plz wrte the code....plz plz
Loading
Satyapriya NayakPosted Apr 9, 2013, 6:58 AM
Please elaborate it more
Suthish NairPosted Apr 9, 2013, 6:13 AM
Pankaj RawatPosted Apr 9, 2013, 6:06 AM
on gridview where u want name.
code Behind
Create function GetEmployeeName
public string GetEmployeeName(int EmployeeID)
{
string employee_Name= /* Retrieve Employee Name on the basis of
EmployeeID from your Datasource*/
string[] str = employee_Name.Split(' ',',');
return str[0].ToString();
}