I want to bind 2d array to gridview. How can do so. I am attaching my code also. If there is any other way then also suggest me.
string sQS;
string[] aQS;
string pwd = "ebskey";
string DR = Request.QueryString["DR"].ToString();
DR = DR.Replace(' ', '+');
sQS = Base64Decode(DR);
DR = EBSHelper.Decrypt(pwd, sQS, false);
aQS = DR.Split('&');
int p1 = aQS.Length;
string[,] pp = new string[p1,2];
for (int i = 0; i < aQS.Length; i++)
{
string[] aParam = aQS[i].Split('=');
pp[i,0] = aParam[0].ToString();
pp[i,1] = aParam[1].ToString();
}
GridView1.DataSource = pp;
GridView1.DataBind();