TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kanhialal kk
NA
234
338.3k
data can't bind error occuring
Apr 3 2011 1:40 PM
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
Reply
Answers (
4
)
need help to sort number
Enable false but want to see the color