lesliedomjones
Programmer
hello all,
I have created a two dimenstional array and try to bind to a datagrid as shown below. But I could not get the array values in the datagrid. Instead It is binding the properties of the array.. I could not find why it is happening. Could any one please explain why it is happening and how databinding is done in datagrid or asp.net?
the code is,
string[][] arr = new string[2][];
arr[0][] = {"a", "b"};
arr[1][] = {"c", "d"};
datagrid.DataSource = arr;
datagrid.DataBind();
Thanks in Advance
Regards,
leslie
I have created a two dimenstional array and try to bind to a datagrid as shown below. But I could not get the array values in the datagrid. Instead It is binding the properties of the array.. I could not find why it is happening. Could any one please explain why it is happening and how databinding is done in datagrid or asp.net?
the code is,
string[][] arr = new string[2][];
arr[0][] = {"a", "b"};
arr[1][] = {"c", "d"};
datagrid.DataSource = arr;
datagrid.DataBind();
Thanks in Advance
Regards,
leslie