如何纠正数量列的数据网格视图计算中的错误 [英] How to rectify the error in datagrid view calculation for quantity column
问题描述
先生,
这是我用来链接两个Datagridview进行数量计算的查询。
显示错误变量插入已分配,但其值从未使用过。
我尝试过:
这是下面给出的代码。
sir,
This is the query I have used for linking two Datagridview for qty calculation.
There is an error showing that " the variable insert is assigned but its value is never been used".
What I have tried:
This is the code given below.
string insert = ("SELECT dbo.tblSubAssyCreation.Qty, dbo.tblDetailedPlan.Qty FROM dbo.tblSubAssyCreation INNER JOIN dbo.tblDetailedPlan ON dbo.tblSubAssyCreation.ID = dbo.tblDetailedPlan.ID where tblDetailedPlan.Qty = tblSubAssyCreation.Qty*tblDetailedPlan.Qty");
亲切的帮助我。
有问候
(TE SRINIVASARAGHAVAN)。
Kindly help me.
With Regards
(T.E. SRINIVASARAGHAVAN).
推荐答案
我们不能:错误意味着确切地说了什么。
We can't: the error means exactly what is says.
The variable insert is assigned but its value is never been used
你已声明 insert
,你已经给它一个初始值,但你不再在你的代码中使用它。
我们无法解决这个问题:我们不知道你的代码的其余部分是什么,或者变量应该适合的位置!
You have declared insert
, you have given it an initial value, but you do not use it in your code again.
We can't fix that: we have no idea what the rest of your code does, or where the variable is supposed to fit in!
这篇关于如何纠正数量列的数据网格视图计算中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!