Last post Apr 29, 2008 09:55 AM by Som Nath Shukla
Apr 29, 2008 08:43 AM|andrewjohn|LINK
I have two gridviews on my form as you can see from the following screenshot when a user navigates through each record in the first gridview I want the second gridview at the bottom to show the corresponding courses using the ApplicationID field. Any ideas?
Help much appreciated.
Apr 29, 2008 09:05 AM|lberan|LINK
there are no snapshots on the screen.
but you may try to set auto postback true on gridview1.
Apr 29, 2008 09:14 AM|andrewjohn|LINK
Sorry just to clarify this in a Windows Form application using VB.NET.
Apr 29, 2008 09:23 AM|Som Nath Shukla|LINK
yes for second gridview use a datasource where write a
SelectCommand="SELECT * FROM [customers] WHERE ([CustomerId] = @CustomerId)">
Apr 29, 2008 09:30 AM|andrewjohn|LINK
Sorry guys this isn't a website this is a Windows Forms application.
Apr 29, 2008 09:55 AM|Som Nath Shukla|LINK
class Form1 :
dataGridView2.DataSource = dt;