Retrieve data from a datagrid cell via the column name

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.
 
S

stainless

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top