DataGrid ShowFooter Routine

J

Jon Turner

I am trying to set focus to a listbox control within the DataGrid when they
select Add. How do I find the control or ItemIndex of where the new row
will inserted, or is there another event that the DataGrid will throw that I
can tap into.

Dim dg as DataGrid

Sub AddNewElement

Dim lBox as DropDownList

dg.ShowFooter
lBox = dtgCharges.Items(????).Cells(1).FindControl("MyDropDownList")

End Sub


Many 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,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top