Quantcast
Channel: How to display results based on employees manager and department
Viewing all articles
Browse latest Browse all 6

Re: How to display results based on employees manager and department

$
0
0

Hi ,

You could set you DataKeyNames  like this in your gridview markup:

<asp:GridView .... DataKeyNames="ItemID" ...>

Then you could get the value in code behind like:

YourGridView.DataKeys[RowIndex].Values[0].ToString();

For more details ,also refer to links below:

http://stackoverflow.com/questions/17413700/hide-boundfields-but-still-be-able-to-get-values-with-c-sharp .

http://stackoverflow.com/questions/6945572/gridview-getting-value-of-a-boundfield-set-to-visible-false .

Best Regards,

Nan Yu


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>