How to use ButtonColumn to select a Datagrid row?

N

Northern

I am having problem select a row from datagrid. According
to the doc, the standard way of doing this is to add
ButtonColumn to the grid and have a event handler do the
work. I added this ButtonColumn and have a method linked
to the button click event. All these are fine. My only
problem is that the event handler only take arguments as:
ByVal sender As Object, ByVal e As System.EventArgs
as oppose to:
ByVal oSource As Object, ByVal oArgs As
DataGridCommandEventArgs

This make it impossible for me to retrive any information
about the row, since the System.EventArgs doesn't expose
those properties.

What am I doing wrong?

Thanks
 

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

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top