Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rebind Datagrid on Edit - send value to Bind()

Status
Not open for further replies.

faithful1

Programmer
Sep 27, 2002
49
0
0
US
Hello,
I have a datagrid with an EditCommandColumn. My oneditcommand is

Sub doEdit(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
dgUsers.EditItemIndex = e.Item.ItemIndex
queryAlpha(sort)
End Sub


When I rebind the data which is queryAlpha(sort as string),
I need to send the value of one of the cells of the row selected. How can I do this? I have tried
Dim sort as string = Ctype(e.item.columns(1).controls(0),textbox).text
I know this is the right column, but I just get a blank value.

Please help. =)

 
Figured it out. Had to put the value in a control on the datagrid.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top