ItemDataBound

  • Thread starter Thread starter Shawn
  • Start date Start date
S

Shawn

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

Shawn
 
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.
 
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.
 
Back
Top