Hi All
I have a basic Grid with 13 bound cols, based on value at databound I want to change the text in the cell.
my "OffHireDate" should be index my 4th column, however 6 is the correct index, this seems to be the same for all columns, i.e first index Cells[0] is actually Cells[2].??
I have no hidden cols, or templates. Not sure how it is counting index, should i use Column Name to access it? rather than index.
Thanks
I have a basic Grid with 13 bound cols, based on value at databound I want to change the text in the cell.
if
(e.Item
is
GridDataItem)
{
StockPurchasingVehicle v = (StockPurchasingVehicle)e.Item.DataItem;
GridDataItem item = (GridDataItem)e.Item;
if
(v.OffHireDate == DateTime.MinValue)
{
item.Cells[6].Text =
""
;
}
}
my "OffHireDate" should be index my 4th column, however 6 is the correct index, this seems to be the same for all columns, i.e first index Cells[0] is actually Cells[2].??
I have no hidden cols, or templates. Not sure how it is counting index, should i use Column Name to access it? rather than index.
Thanks