lwidjaya said:
Is there a way to find out which column is selected/highlighted in
datagrid?
I tried using "SelLeft" but it always gave me "1".
Thanks in advance.
Do you mean a listbox, or a continues form, or a 3rd party data grid
control?
SelLeft was never application to your question in any context....
Remember, a listbox, or a continues form looks very similar. Here is some
screen shots of what I mean:
Also, it depends in terms of what context. If you have data displayed in a
grid like format (a continues form), then you can pick up the current
control via code such as:
screen.ActiveControl.Name
The above would return the current controls name. However, if you click a
button, then the active control is now the button you clicked (and the focus
has moved/changed. So, what context you trying to do under is also very
important.