I am currently building a filtering mechanism for a gridview. I am binding the gridview to an SQLDataSource. My user will select a column name from a dropdown list (populated at page load from gridview.columns(i).HeaderText values) and enter a search value in a textbox. What I want to do at this point is to determine programmatically what data field is associated with the select column HeaderText value. What I need to locate is the DataField value associated with the column. Can you help?
Ahh, but have you tried casting the Column to the actual column?
Here's a VB example,
If myGridView.Columns(i) is BoundField Then
Dim dataField as String = ctype(Gridview.columns(i), BoundField).DataField
Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.
While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.
If your ASP.NET page …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email
Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…