Monday, January 17, 2011

HyperLinkField which are not part of your Gridview DataSource

How to pass external values with GridView HyperLinkField which are not part of your Gridview DataSource member ?
 
DataNavigationUrlField use only those fields as parameter which are the part of GridView DataSource. Now the problem comes when you want to pass some other variables as parameter which are not part of the DataSource. As shown in below image we are passing EmpID and ParentId as argument and this two field are the data member of GridView DataSource.
 

No comments: