ItemDataBound

S

Shawn

Hi.
Is it possible to get the name of the boundcolumn's datafield in the
datagrid_ItemDataBound sub?

Shawn
 
A

Alvin Bruney

Typically, this information is available in the sender object with the
required casts
As an example consider a button click event is generated
Button btn = (Button)sender
string str = btn.Text;
This code should provide an idea as to how to go about solving your problem.
 
S

Shawn

I wish it was that simple.. I've looked for hours through Visual Studio's
QuickWatch function without finding the value I'm after.

Shawn

"Alvin Bruney" <vapor at steaming post office> wrote in message
Typically, this information is available in the sender object with the
required casts
As an example consider a button click event is generated
Button btn = (Button)sender
string str = btn.Text;
This code should provide an idea as to how to go about solving your problem.
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top