PC Review


Reply
Thread Tools Rate Thread

Help needed with binding textboxes in a frameset.

 
 
YouKnowWho
Guest
Posts: n/a
 
      17th Mar 2004
I have a datagrid working great in an ASP.NET application. Does anyone
have any idea how to bind textboxes to the selected record in the datagrid?
the datagrid and textboxes are on different webforms in the frameset.

Here's what I am trying:

Private Sub DataGrid1_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
DataGrid1.SelectedIndexChanged
WebForm2.txtFirstName.Text = DataGrid1.Items
(DataGrid1.SelectedIndex).Cells.Item(3).Text()
WebForm2.txtFirstName.DataBind()
End Sub

Here is the thrown exception:
Index 0 is not non-negative and below total rows count.

Here's how I am filling the DA:
SqlDataAdapter1.Fill(DataSet11)
DataGrid1.DataBind()


Thank you for your time.
Aaron
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding to TextBoxes on MySQL with C# jwitt Microsoft ADO .NET 1 3rd Mar 2006 08:48 AM
binding data with textboxes alpoor Microsoft ASP .NET 2 16th Jun 2005 10:32 PM
Binding textboxes (again) VB Learner Microsoft Dot NET Framework Forms 3 1st Mar 2005 09:22 AM
Binding textboxes Big E Microsoft ASP .NET 3 5th Jun 2004 04:48 AM
Questions about binding textboxes. Aaron Microsoft Dot NET Framework Forms 2 30th Jan 2004 09:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:31 PM.