RadhaKrishnaKiJaya
asked on
Read Text Column GridViewRow Data
Hello Experts,
I am trying to read a GridView in c#. Till Cell(3), I am able to read the data. But, Cell[4] shows empty, which is a text field contains date. This filed is Edit/Update field. Any idea, why I am not able get the data? Below is the code.
Thank you in advance!
string Id, Name, FNumber, FName, FValue;
foreach (GridViewRow Item in grdImportView.Rows)
{
PId = Item.Cells[0].Text;
PName = Item.Cells[1].Text;
FNumber = Item.Cells[2].Text;
FName = Item.Cells[3].Text;
FValue = Item.Cells[4].Text;
}
I am trying to read a GridView in c#. Till Cell(3), I am able to read the data. But, Cell[4] shows empty, which is a text field contains date. This filed is Edit/Update field. Any idea, why I am not able get the data? Below is the code.
Thank you in advance!
string Id, Name, FNumber, FName, FValue;
foreach (GridViewRow Item in grdImportView.Rows)
{
PId = Item.Cells[0].Text;
PName = Item.Cells[1].Text;
FNumber = Item.Cells[2].Text;
FName = Item.Cells[3].Text;
FValue = Item.Cells[4].Text;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER