hi friends , i have been trying to fill datagridView .but i am getting the folloiwng error .
Error 2 The best overloaded method match for 'System.Windows.Forms.DataGridViewColumnCollection.Add(System.Windows.Forms.DataGridViewColumn)' has some invalid arguments C:\TradingSummary\TradingSummaryStatus\FrmBrands.cs 73 17 TradingSummaryStatus
Error 3 Argument '1': cannot convert from 'string' to 'System.Windows.Forms.DataGridViewColumn' C:\TradingSummary\TradingSummaryStatus\FrmBrands.cs 73 43 TradingSummaryStatus
Code:public void FillBrandMaster(){ foreach (Brand _brand in _brands) dataGridView1.Columns.Add(_brand.BrandID).ToString(); }


Reply With Quote

Bookmarks