data can't bind error occuring
private void frmReassignBook_Load(object sender, EventArgs e)
{
for (int i = 0; i < this.flex.Cols; i++)
{
this.flex.set_ColAlignment(i, 1);
}
this.flex.set_ColWidth(0, 700);
this.flex.set_ColWidth(1, 0x7d0);
this.flex.set_ColWidth(2, 0x7d0);
this.flex.set_TextMatrix(0, 0, "Book #");
this.flex.set_TextMatrix(0, 1, "Assigned to:");
this.flex.set_TextMatrix(0, 2, "Reassign to:");
try
{
for (int j = 1; j < this.flex.Rows; j++)
{
this.flex.set_TextMatrix(j, 0, j.ToString());
DataTable table = new DataTable();
table = this.obj.GenralSelect_Method("select pcname,invoice from book where bookname like '" + this.flex.get_TextMatrix(j, 0) + "'").Tables[0];
if (table.Rows.Count > 0)
{
this.flex.set_TextMatrix(j, 1, table.Rows[0][0].ToString());
if (table.Rows[0][1].ToString() == "2501")
{
this.flex.Row = j;
for (int k = 0; k < this.flex.Cols; k++)
{
this.flex.Col = k;
this.flex.CellForeColor = Color.Red;
}
}
if (j == 0x63)
{
this.btnReset.Enabled = true;
}
}
else
{
this.flex.set_TextMatrix(j, 1, "Unassigned");
}
}
}
catch (Exception exception)
{
MessageBox.Show(exception.get_Message(), "Error");
}
this.flex.Col = 1;
this.flex.Row = 1;
}
can any body help me