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

Pankaj Rawat71 reputationPosted Apr 9, 2013, 2:06 AM EDT
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();
}
Suthish NairRank #92 · 22.8K reputationPosted Apr 9, 2013, 2:13 AM EDT
Satyapriya NayakRank #47 · 31.5K reputationPosted Apr 9, 2013, 2:58 AM EDT
Please elaborate it more