Retrieve data from a datagrid cell via the column name

  • Thread starter Thread starter stainless
  • Start date Start date
S

stainless

I have built a dynamic web datagrid with column names assigned
dynamically. For example, I have a column called "BaseValue" and a
column called "BaseValueHidden".

I am saving the names of these columns when the datagrid is built e.g.
strColumnA = "BaseValue" and strColumnB = "BaseValueHidden".

At a later point in the code, I have identified a specific row in the
datagrid (via an integer index) and want to compare the values in the
column identified by strColumnA and that identified by strColumnB.

How do I reference the values in these columns given that my Datagrid
item (i.e. row) is dataGrid.Items[3] ?

I have been unable to get a syntax that allows me to reference the
values in the cells.
 
Forgot to mention..... I can only use .Net Framework 1.1.... yes, I
know this is ancient technology but my company has not rolled out any
more recent versions of .Net
 
Back
Top