Link to home
Start Free TrialLog in
Avatar of RadhaKrishnaKiJaya
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;
    }
ASKER CERTIFIED SOLUTION
Avatar of John Gates, CISSP, CDPSE
John Gates, CISSP, CDPSE
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

ASKER

Thank you John.  The above code worked.