Skip to content
Loading
  • Jignesh Kumar
    0
    Hi Martin,
     
    Please check this link which will help you,
    https://forums.asp.net/t/1661360.aspx?How+to+decrypt+one+Gridview+column+values+before+displaying+it+in+the+Gridview 
    0
  • Rajanikant Hawaldar
    0
    That's what I am telling you the movement datagridview binds in form load event automatically row added event will trigger so only i am suggesting to keep decrypting part at row added event otherwise call datagridview bind function then call decrypt function. Please post your form load code
    0
  • Rajanikant Hawaldar
    0
    Hey your binding only Current row again and again, should you bind like dgpersonal.Rows[i].Cells[0].Value http://tutorpinoy.blogspot.com/2014/04/populate-data-into-datagridview-csharp.html?m=1
    0
  • 0
    Thank o lot , I will check
    0
  • Jignesh Kumar
    0
    Hi Sam,
     
    If it is possible to decrypt values while querying sql then you can do it at SQL Level. Which technique you are using to encrypt and decrypt.
    0
  • Rajanikant Hawaldar
    0
    if (dr.Read()) should be => While (dr.Read()) because using if condition only one row is getting decrypted. tutorpinoy.blogspot.com/2014/04 this link I provided you to know how datagridview will bind row column wise
    0
  • Vinay Singh
    0
    To bind the decrypted value you need to first bind the data and then decrypt the bond recod on row data bound of grid view
    0
  • Rajanikant Hawaldar
    0
    Your casting to but there no value which can convert to int
    0
  • 0
    Thank thank thank Workkkkkkkkkkkkkkkkkkk Very very thank
    0