if (Gridview_Output.Rows.Count > 0) { foreach (DataRow dr in oDataSet.Tables[0].Rows) { string _Car = dr[1].ToString(); string _Dealer = dr[2].ToString(); string _Model = dr[4].ToString(); if (_Car.Length == 0) { _Car = "NULL"; } if (_Dealer.Length == 0) { _Dealer = "NULL"; } if (_Model.Length == 0) { _Model = "NULL"; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)