views:

51

answers:

1

I have a gridview control having 4 columns. one of the column is of type linkcolumn. user has to enters data for each column.

How can we edit link column cell. if i click on this cell nothing happen.i set its readonly to false also.

+1  A: 

Your can try creating a textbox control instead and show it when the grid is being edited, this will allow the user to enter the hyperlink's text. Then add code to check if this textbox control has any text and if so you can then display a hypelink control with the value from the textbox and hide the textbox.

Also, my preferred way of doing this is to use grids for viewing only (read only), and then have a separate form with the data entry fields for data entry purposes.

Good luck!

Ricardo
Your 1st way is very simple and it works. Thanks Ricardo..Have a goodday..
Royson