如何配置datagridview,以便用户只能在各行之间移动并使用滚动条,而不能进行其他操作...如果禁用网格,则不允许我使用滚动条
我有一个包含不可见控件的UserControl,为了使它们可见,UserControl调整大小.
我需要调整包含UserControl的Panel的大小,但我不知道如何.
我在Sql Server MSSM中执行以下SQL查询,运行时间超过5秒.由内连接连接的表,只有几万条记录.为什么需要这么长时间?
查询的较高的成本是: - 聚集索引扫描[MYDB] [DBO] [LinPresup] [PK_LinPresup_Linea_IdPresupuesto_IdPedido] 78%.. - 聚集索引查找[MyDB].[dbo].[Pedidos].[PK_Pedidos_IdPedido] 19%
谢谢.
Declare @FILTROPAG bigint
set @FILTROPAG = 1
Declare @FECHATRABAJO DATETIME
set @FECHATRABAJO = getDate()
Select * from(
SELECT distinct Linpresup.IdCliente, Linpresup.IdPedido, Linpresup.FSE, Linpresup.IdArticulo,
Linpresup.Des, ((Linpresup.can*linpresup.mca)-(linpresup.srv*linpresup.mca)) as Pendiente,
Linpresup.IdAlmacen, linpresup.IdPista, articulos.Tip, linpresup.Linea,
ROW_NUMBER() OVER(ORDER BY CONVERT(Char(19), Linpresup.FSE, 120) +
Linpresup.IdPedido + CONVERT(char(2), linpresup.Linea) DESC) as NUM_REG
FROM Linpresup INNER JOIN Pedidos on LinPresup.IdPedido = Pedidos.IdPedido
INNER JOIN Articulos ON Linpresup.IdArticulo = Articulos.IdArticulo
where pedidos.Cerrado = 'false' and …Run Code Online (Sandbox Code Playgroud)