Click here to Skip to main content
16,018,417 members

Comments by obp42 (Top 22 by date)

obp42 17-Aug-12 16:45pm View    
Have you debugged to make sure you are actually running the query you intend to?
obp42 17-Aug-12 15:53pm View    
Start by changing
if (textBox1.Text.Trim() == OleDbDataRead[6].ToString() | textBox1.Text.Trim() == OleDbDataRead[7].ToString())
to
if (textBox1.Text.Trim() == OleDbDataRead[6].ToString() || textBox1.Text.Trim() == OleDbDataRead[7].ToString())
obp42 3-Aug-12 9:56am View    
I'm glad I was able to help.
obp42 3-Aug-12 9:35am View    
I'm not sure that I understand what you're trying to say but I think you still should be able to do this in the DataBindingComplete handler. Right after you return your DataTable, add the cells you need highlighted to a global array (something like int coords[,]), then loop through these in the DataBindingComplete event and set them all to selected.
If this doesn't work then try posting some more code in your original question and hopefully myself or someone else can help.
obp42 2-Aug-12 16:19pm View    
You said you got it to work if you put it in the DataBindingComplete event right? Is there something wrong with doing it that way?