Fill different data for two identical datagridview located in different tabpages from a same tabcont

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p class=MsoNormal style="margin:0cm 0cm 0pt <span lang=ES-TRAD style=" <font face="Times New Roman Help!</font>
<p class=MsoNormal style="margin:0cm 0cm 0pt <span lang=ES-TRAD style=" <font face="Times New Roman  </font>
<p class=MsoNormal style="margin:0cm 0cm 0pt <span lang=EN-GB style=" <font face="Times New Roman When I load for the first time one form, I need to fill two identical datagridview with different information. Datagridview1 with one query I have, and datagridview2 with another query.</font>
<p class=MsoNormal style="margin:0cm 0cm 0pt <span lang=EN-GB style=" <font face="Times New Roman The problem is that I have the datagridviews in two different tabpages from a same tabcontrol.</font>
<p class=MsoNormal style="margin:0cm 0cm 0pt <span lang=EN-GB style=" <font face="Times New Roman How can I fill the two datagridviews with different data although the datagridview are the same?</font>
<p class=MsoNormal style="margin:0cm 0cm 0pt <span lang=EN-GB style=" <font face="Times New Roman  </font>
<p class=MsoNormal style="margin:0cm 0cm 0pt <span lang=EN-GB style=" <font face="Times New Roman The codes I use to fill datagridviews are like this type:</font>
<p class=MsoNormal style="margin:0cm 0cm 0pt <span style="font-size:10pt;color:blue;font-family:Courier New Me<span style="font-size:10pt;font-family:Courier New .ProductosTableAdapter.Fill(<span style="color:blue Me.InmobDataSet.Productos, somevariable)
<p class=MsoNormal style="margin:0cm 0cm 0pt <font face="Times New Roman  </font>
<p class=MsoNormal style="margin:0cm 0cm 0pt <span lang=EN-GB style=" <font face="Times New Roman I think that I might be able to do this if the above code can be load when I chose tab page1</font><span lang=EN-GB style="font-size:10pt;color:blue;font-family:Courier New <span lang=EN-GB style=" <font face="Times New Roman and then load another fill code when I chose tabpage2.</font>
<p class=MsoNormal style="margin:0cm 0cm 0pt <span lang=EN-GB style=" <font face="Times New Roman  </font>
<p class=MsoNormal style="margin:0cm 0cm 0pt <span lang=EN-GB style=" <font face="Times New Roman Thanks in advance,</font>
<p class=MsoNormal style="margin:0cm 0cm 0pt <span lang=EN-GB style=" <font face="Times New Roman  </font>
<p class=MsoNormal style="margin:0cm 0cm 0pt <span lang=EN-GB style=" <font face="Times New Roman Mike</font>

View the full article
 
Back
Top