Hi,
I am currently using a DataTable that Vlad had developed to bind the data to my grid. In the code I observed that we have
var firstItem = source.FirstOrDefault();
With this we identify the column and it datatype before we add to the column list. This works fine as long as the first row has no null values. But what if one of the row values is null? Its failing to identify the Type of the column and therefore fails to bind the data. Any solution to this issue?
Harish
I am currently using a DataTable that Vlad had developed to bind the data to my grid. In the code I observed that we have
var firstItem = source.FirstOrDefault();
With this we identify the column and it datatype before we add to the column list. This works fine as long as the first row has no null values. But what if one of the row values is null? Its failing to identify the Type of the column and therefore fails to bind the data. Any solution to this issue?
Harish