G
Guest
C# - Windows application.
Datagrid class... Data grid is populated with records. (see the code below)
Select one of the entire row from the grid (selected gfrom outside left
boundary).
The row gets highlighted...
Press CTRL C to mimic copy functionality.
boom!!! unhandled exception---
Please help my application is on production......!!!!!!!!!!!!!!!
NO do not suggest me to go to some thirdy party controls.....
Waiting positively for response TODAY
Following is the code just in case if at all really some one is going to read
Cursor.Current = Cursors.WaitCursor;
DataSet DSCycleHistory =new DataSet();
m_FiscalYear = cmbFiscalYear.Text;
sSql ="SELECT * FROM " + Global.TABLE_CYCLE_COUNT_HISTORY + " where
trim(to_char(execution_date,'YYYY')) = '"+m_FiscalYear + "' ORDER BY
COUNT_ID" ;
DSCycleHistory=OracleHelper.ExecuteDataset(Global.sConnStr,CommandType.Text,sSql);
//dgErrors.DataBindings =DSError;
//dgErrors.TableStyles[0].AlternatingBackColor = Color.Gray;
dgHistory.DataSource = null;
dgHistory.Enabled = false;
dgHistory.SetDataBinding(DSCycleHistory,"Table");
dgHistory.TableStyles[0].AlternatingBackColor = Color.LightGray;
dgHistory.Enabled = true;
dgHistory.PerformLayout();
dgHistory.Refresh();
Datagrid class... Data grid is populated with records. (see the code below)
Select one of the entire row from the grid (selected gfrom outside left
boundary).
The row gets highlighted...
Press CTRL C to mimic copy functionality.
boom!!! unhandled exception---
Please help my application is on production......!!!!!!!!!!!!!!!
NO do not suggest me to go to some thirdy party controls.....
Waiting positively for response TODAY
Following is the code just in case if at all really some one is going to read
Cursor.Current = Cursors.WaitCursor;
DataSet DSCycleHistory =new DataSet();
m_FiscalYear = cmbFiscalYear.Text;
sSql ="SELECT * FROM " + Global.TABLE_CYCLE_COUNT_HISTORY + " where
trim(to_char(execution_date,'YYYY')) = '"+m_FiscalYear + "' ORDER BY
COUNT_ID" ;
DSCycleHistory=OracleHelper.ExecuteDataset(Global.sConnStr,CommandType.Text,sSql);
//dgErrors.DataBindings =DSError;
//dgErrors.TableStyles[0].AlternatingBackColor = Color.Gray;
dgHistory.DataSource = null;
dgHistory.Enabled = false;
dgHistory.SetDataBinding(DSCycleHistory,"Table");
dgHistory.TableStyles[0].AlternatingBackColor = Color.LightGray;
dgHistory.Enabled = true;
dgHistory.PerformLayout();
dgHistory.Refresh();