Button Column ID

Mrali

New member
Joined
Feb 14, 2006
Messages
1
Location
KSA
Programming Experience
1-3
Hi,

How to find the ID of ButtonColumn control found in DataGrid control?

I need to Enable/Disable the button based on a condition while the DATA is loaded to the DataGrid control.

I think I should use DataGrid1_ItemDataBound event with
FindControl("TheIDOfTheButton")

Please, I need your help.
Thanks
 

Nezo

Member
Joined
Sep 27, 2005
Messages
12
Programming Experience
3-5
Are you looking for the classID? I you can use Spy++ in Visual Studio to find this. Use the Find Window options then you can use the Finder Tool from there and move it over any Button, Text Box, Data Grid, ect. It should show you the ClassID as well as the Windows Handle.

Or you could download AutoIT and use their spy/info tool shown here
http://www.autoitscript.com/autoit3/docs/intro/au3spy.htm
 
Top Bottom