Hi,
I have a custom DataGridColumnS tyle, where in paint
of cells, it's accesing the value using GetColumnValueA tRow
(CurrencyManage r source, Int32 rowNum)
where it's throwing this exception, when I tried to
debug it, the DataRowView.Dat aRowVersion property is
throwing exception when I tried to see it's value
System.NullRefe renceException: Object reference not set to
an instance of an object.
at System.Data.Dat aView.IsOrigina lVersion(Int32 index)
at System.Data.Dat aRowView.GetCol umnValue(DataCo lumn
column)
at System.Data.Dat aColumnProperty Descriptor.GetV alue
(Object component)
at
System.Windows. Forms.DataGridC olumnStyle.GetC olumnValueAtRo
w(CurrencyManag er source, Int32 rowNum)
at Viper.UI.Base.D ataGridTextBoxC olumnEx.Paint(G raphics
g, Rectangle bounds, CurrencyManager source, Int32 rowNum,
Brush backBrush, Brush foreBrush, Boolean alignToRight)
Anybody plz help.
Thanks,
Shravan.
I have a custom DataGridColumnS tyle, where in paint
of cells, it's accesing the value using GetColumnValueA tRow
(CurrencyManage r source, Int32 rowNum)
where it's throwing this exception, when I tried to
debug it, the DataRowView.Dat aRowVersion property is
throwing exception when I tried to see it's value
System.NullRefe renceException: Object reference not set to
an instance of an object.
at System.Data.Dat aView.IsOrigina lVersion(Int32 index)
at System.Data.Dat aRowView.GetCol umnValue(DataCo lumn
column)
at System.Data.Dat aColumnProperty Descriptor.GetV alue
(Object component)
at
System.Windows. Forms.DataGridC olumnStyle.GetC olumnValueAtRo
w(CurrencyManag er source, Int32 rowNum)
at Viper.UI.Base.D ataGridTextBoxC olumnEx.Paint(G raphics
g, Rectangle bounds, CurrencyManager source, Int32 rowNum,
Brush backBrush, Brush foreBrush, Boolean alignToRight)
Anybody plz help.
Thanks,
Shravan.