| |

VerySource

 Forgot password?
 Register
Search
View: 821|Reply: 8

About the data binding problem after crosstab query!

[Copy link]

1

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-22 21:00:01
| Show all posts |Read mode
I have a table with fields like number, name, date ... etc., implemented by cross table query

 2017-1-1 2017-1-2 2017-1-3 2017-1-4 ...
No.Name Name Name Name ...
No.Name Name Name Name ...
No.Name Name Name Name ...
...

The cross-table query is now complete and can be directly bound to GRIDVIEW. But there is a problem, my number field is a number from 1 to 16, and the order is from low to high. If it is bound to GRIDVIEW, if there is no one of the numbers in the database, the bound GRIDVIEW does not have that row, but my table has a number and an empty row even if there is no row. Do you have any suggestions?

I know that it is possible to bind cells through FLEXGRID, but the current FLEXGRID of WEB does not come with VS2005. Things like ASP.NET2.0 are neither open source nor free, which is more troublesome. If I use TABLE or DIV, I don't know how to draw.
Reply

Use magic Report

1

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-2-3 16:30:01
| Show all posts
The result after binding is to be printed out. After reading the discussion in the forum, the WEB printing is very troublesome, or you can export to Excel for printing. Either through the report, but the crystal report is not very good, can I say that the crystal report is achieved? Thank you
Reply

Use magic Report

1

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-2-10 17:00:02
| Show all posts
Is everyone off on New Year's Day? Nobody? ? ?
Reply

Use magic Report

0

Threads

41

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 Invalid IP Address

Post time: 2020-2-13 19:00:01
| Show all posts
This is still good to deal with in the cross-table query
Reply

Use magic Report

0

Threads

211

Posts

108.00

Credits

Newbie

Rank: 1

Credits
108.00

 China

Post time: 2020-2-15 14:15:01
| Show all posts
--try

(
select number = 1
union all select 2
union all select 3
union all select 4

...

union all select 16
) A
left join (result set generated by dynamic SQL) B on A. number = B. number
Reply

Use magic Report

0

Threads

211

Posts

108.00

Credits

Newbie

Rank: 1

Credits
108.00

 China

Post time: 2020-2-15 15:15:01
| Show all posts
--sorry, missed some

select * from
(
select number = 1
union all select 2
union all select 3
union all select 4

...

union all select 16
) A
left join (result set generated by dynamic SQL) B on A. number = B. number
Reply

Use magic Report

0

Threads

8

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-2-16 12:15:02
| Show all posts
Support upstairs practices.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-16 15:00:01
| Show all posts
Automatically populate a GridView with a fixed number of rows
http://dotnet.aspx.cc/article/ee911c00-0e99-4e50-a941-3defa599ef48/read.aspx
Reply

Use magic Report

1

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-6-26 14:30:01
| Show all posts
Thank you, a few people upstairs, and again, the vertical column of my cross table only shows one day, according to the corresponding number to display multiple columns, more than one name, is it ok?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list