pavithran

pavithran

  • NA
  • 69
  • 0

Mapping ArrayList to DataGrid -- Problem

Apr 7 2005 2:12 AM
Hi, the code below given is displaying lenght of strings in datagrid rather displaying the string names ___________________________________________________ private System.Windows.Forms.DataGrid dataGrid1; private System.Windows.Forms.DataGridTableStyle dgTabStyle; ArrayList arraList = new ArrayList(); arraList.Add("pavithran"); //9 arraList.Add("Pavi"); //4 arraList.Add("Nani"); //4 dgTabStyle.MappingName = "ArrayList"; dataGrid2.TableStyles.Add(dgTabStyle); dataGrid2.DataSource = arraList; ___________________________________________________ can u help me to display names rather displaying name lengths. thanx pavithran

Answers (2)