I am developing with c # (Visual Studio).
Currently trying to display two data in tabcontrol, but it doesn't work
I use defaultview and defaultviewfilter because I want to sort and display the data.
The code written to display data in the second datagridview after displaying the data in the first datagridview will stop if the child list of the 'field (DB name)' cannot be created.
Are there any restrictions when using rowfiltwer?
Please reply
Here is the code
ds order = new order ();
The following processing is performed after calling ds when loading the form
The first display code
{
string extract 1 = "number LIKE '%" + txt number.Text + "%'";
Extract 1 + = "AND level = '" + "2" + "'";
string extract 2 = "order number DESC";
ds.T Order.DefaultView.RowFilter = Extract 1;
ds.T Order.DefaultView.Sort = Extract 2;
dgvT order.DataSource = ds.T order.DefaultView;
}
Code for the second display
{
string extract 1 = "number LIKE '%" + txt number.Text + "%'";
Extract 1 + = "AND level = '" + "2" + "'";
string extract 2 = "order number DESC";
ds.T line.DefaultView.RowFilter = Extract 1;
ds.T line.DefaultView.Sort = Extract 2;
dgvT line.DataSource = ds.T line.DefaultView;
}
-
Answer # 1
Related articles
- python - about the error cannot reshape array of size
- php: there is an error in the insert into line and it cannot be resolved
- c # - about controlling unity animation
- c # - cannot add unity int
- c # - gameobject cannot be set active (true);from script
- ruby on rails - about the error when trying to implement jquery with rails ($is not defined;please fix or add/* global * /)
- python - idle cannot resolve the "rootgeometry" error
- about excel multiple sheet access in c #
- about setting error to run circleci rspec
- [vs2019] reference error when webrequest is not found in c #
- c # - about validating methods by constructor
- c # - i have a question about unity unitychan
- java - about the error when opening the jar
- c # - about the behavior of variable height control in template of listview of xamarinforms (ios)
- c # httplistener cannot receive ssl communication
- c - {about the error
- about redis timeout error on heroku
- c # - transformleft results in an error right is to read
- about c # image display
- ruby on rails - cannot save nested child model
- c # - i want to add behavior to checkboxlist
- c # - get variable values from aspnet code-behind
- candidates are not displayed even if i hit a period in c # opened in unity
- c # - unity 2d breakout: i want to double the score for consecutive hits
- c # - i want to create a collision detection so that the game is over when it hits the picturebox
- c # - toolbox is not displayed even on the screen of visual studio design
- c # - it appears in the console window even though it is different from the condition of the unity if statement
- c # - i want to display my form as new after sleeping for a few seconds
- c # - i want to share variables from other scripts
- get audio in c # and display waveform
An error occurred when using Rowfilter with multiple datasets in tabcontrol
It seems to have been able to avoid bugs by changing to a specification that does not use tabs.