这是代码
<DxDataGrid Data="@dischargeBoards"
ShowFilterRow="true"
ShowPager="true"
ShowGroupPanel="true">
<DxDataGridColumn Field="@nameof(DischargeGetBoardVisits.DischargeDateExp)" Caption="D/C Exp" DisplayFormatString="D" EditFormatString="d"></DxDataGridColumn>
</DxDataGrid>
如何解决此问题以及如何更改此网格的字体大小。
答案 0 :(得分:1)
尽管DxDataGridColumn没有DisplayFormatString和EditFormatString属性,但是您可以通过手动格式化数据以所需格式显示数据。因此,算法如下:
P.S。当前,DxDataGridDateEditColumn和DxDataGridSpinEditColumn具有DisplayFormatString属性:DisplayFormatString,DisplayFormatString
要更改网格的字体大小,请设置其CssClass属性(例如,设置为“ my-grid”值)并应用以下CSS规则:
foldlM :: (Foldable t, Monad m) => (b -> a -> m b) -> b -> t a -> m b
foldlM f z0 xs = foldl f' return xs z0
-- ^^^^^^
-- |- Initial value
where f' b a = \bvalue -> b bvalue >>= \bresult -> f bresult a -- this is equivalent to (b >=> \result -> f result a) which captures the sequence behaviour of the implementation
-- ^ ^^^^^^ ^^^^^^^
-- | | |- This is the result of previous computation
-- | |- f' should return a function b -> m b. Any time you have to return a function, start writing a lambda
-- |- This b is the accumulated value and has type b -> m b
-- Following the types you can write this with enough practise