需要帮助才能使用Infragistics webdatagrid

时间:2016-08-12 11:20:39

标签: infragistics webdatagrid

我第一次在Infragistics webdatagrid工作。

到目前为止,我安装了跟踪版本并将数据(数据表)绑定到webdatagrid成功。现在我需要编辑该webdatagrid中的数据。

我用谷歌搜索了它,但我无法获得有关它的确切信息。所以我坚持了

如果有人工作或知道,你能指导我正确的方向吗?

感谢 卡西克

1 个答案:

答案 0 :(得分:2)

要编辑网格中的单元格,您需要添加EditingCore行为,然后将CellEditing行为添加到该行为。例如:

select distinct name, schema_id, '07_03' as okres, getdate() as czas
                , (case when scale<>0 then 100 else 0 end) scale
                , (case when precision>=4
               or isnull(lead(max_length,2) over (partition by scale,precision order by precision),0)=0 then 0 else 1 end) all_period_available FROM sys.types
        union all

select distinct name, schema_id, '07_04' as okres, getdate() as czas
                , (case when scale<>0 then 100 else 0 end) scale
                , (case when precision>=4
               or isnull(lead(max_length,2) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,3) over (partition by scale,precision order by precision),0)=0 then 0 else 1 end) all_period_available FROM sys.types
        union all

select distinct name, schema_id, '07_07' as okres, getdate() as czas
                , (case when scale<>0 then 100 else 0 end) scale
                , (case when precision>=4
               or isnull(lead(max_length,2) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,3) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,4) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,5) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,6) over (partition by scale,precision order by precision),0)=0 then 0 else 1 end) all_period_available FROM sys.types
        union all

select distinct name, schema_id, '07_10' as okres, getdate() as czas
                , (case when scale<>0 then 100 else 0 end) scale
                , (case when precision>=4
               or isnull(lead(max_length,2) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,3) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,4) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,5) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,6) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,7) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,8) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,9) over (partition by scale,precision order by precision),0)=0 then 0 else 1 end) all_period_available FROM sys.types
        union all

select distinct name, schema_id, '07_14' as okres, getdate() as czas
                , (case when scale<>0 then 100 else 0 end) scale
                , (case when precision>=4
               or isnull(lead(max_length,2) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,3) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,4) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,5) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,6) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,7) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,8) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,9) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,10) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,11) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,12) over (partition by scale,precision order by precision),0)=0 or isnull(lead(max_length,13) over (partition by scale,precision order by precision),0)=0 then 0 else 1 end) all_period_available FROM sys.types

这取自Cell Editing - Basic Features在线样本。