Hi,
I have a custom DataGridColumnStyle, where in paint
of cells, it's accesing the value using GetColumnValueAtRow
(CurrencyManager source, Int32 rowNum)
where it's throwing this exception, when I tried to
debug it, the DataRowView.DataRowVersion property is
throwing exception when I tried to see it's value
System.NullReferenceException: Object reference not set to
an instance of an object.
at System.Data.DataView.IsOriginalVersion(Int32 index)
at System.Data.DataRowView.GetColumnValue(DataColumn
column)
at System.Data.DataColumnPropertyDescriptor.GetValue
(Object component)
at
System.Windows.Forms.DataGridColumnStyle.GetColumn ValueAtRo
w(CurrencyManager source, Int32 rowNum)
at Viper.UI.Base.DataGridTextBoxColumnEx.Paint(Graphi cs
g, Rectangle bounds, CurrencyManager source, Int32 rowNum,
Brush backBrush, Brush foreBrush, Boolean alignToRight)
Anybody plz help.
Thanks,
Shravan.