Hi Vuyiswa, Please correct the data's of subjectid column in Appointment table (TimeTableFull.xml). It contains wrong values that should match the 'ID' column values of subjects table. Thanks,
Gopal.S
Hi Vuyiswa, Please correct the data's of subjectid column in Appointment table (TimeTableFull.xml). It contains wrong values that should match the 'ID' column values of subjects table. Thanks,
Gopal.S
Hi Glenn, I have used this code. It will work correctly. int x = Convert.ToInt32(bindingNavigator1.PositionItem.Text); DataRow dr = dt.Rows[x-1]; if (dr.RowState == DataRowState.Modified) { MessageBox.Show("Modified"); } I don't know what you have done in second line. Which component(KTReunionDataSet)you are using?. Thanks, Gopal.S
Gopal.S
Hi, Please refer the following link: Sending Keystrokes to another Application in C#[^] I hope this will help for you. Thanks,
Gopal.S
Hi, Please refer the following link: Detecting XP Themes[^] Thanks
Gopal.S
Hi, can I know your data source contains only two rows? Also, check and set the different color for 'BackColor' and 'ForeColor' properties of DefaultCellStyle in DataGrid. Thanks,
Gopal.S
Please send Window 6.0 OS supported mobile list?
Gopal.S
Hi, Here is the code snippet: CrystalDecisions.CrystalReports.Engine.ReportDocument reportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument(); reportDocument.Load("samplereport.rpt"); reportDocument.SummaryInfo.ReportTitle = comboBox1.Text; reportDocument.SetDataSource(dset); crystalReportViewer1.ReportSource = reportDocument; Thanks,
Gopal.S
Hi, Here is the code snippet: foreach (PropertyInfo info in t.GetProperties()) { dataGridView1.Rows.Add(); infoName = info.Name; value = info.MemberType.ToString(); } private void dataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e) { dataGridView1.Rows[e.RowIndex].Cells[0].Value = infoName; dataGridView1.Rows[e.RowIndex].Cells[1].Value = value; } Thanks,
Gopal.S
Hi, 1) Concatnate the two column values (in a query) and assign as a value member. 2) You can use "EditingControlShowing" event to access the "SelectedIndexChanged" event for combobox cell. Here is the Code Snipet: private void Form1_Load(object sender, EventArgs e) { this.dataGridView1.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dataGridView1_EditingControlShowing); } private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { ComboBox ctl = e.Control as ComboBox; if(ctl!=null) ctl.SelectedIndexChanged+=new EventHandler(ctl_SelectedIndexChanged); } private void ctl_SelectedIndexChanged(object sender, EventArgs args) { MessageBox.Show("Selected Index Changed Event"); } Thanks,
Gopal.S
Hi Guru, Here is the code snipet: System.Reflection.Assembly ass = System.Reflection.Assembly.GetExecutingAssembly(); string[] files = ass.GetManifestResourceNames(); for(int i=0;i<files.Length;i++) MessageBox.Show(files[i]); Thanks,
Gopal.S
Hi, How to convert the "CCITT u-Law" audio format file to PCM audio format? Please help me. Thanks,
Gopal.S
Hi Dennycrane You are checking a 'Key value(0 to 3)' only, not a value (Value1). Both collection contain same keys(0 to 4). So always return true. You can check the values using "ContainsValue" method instead of 'ContainsKey'. Ex: if (!SL2.ContainsValue(item.Value)) { return false; } Thanks,
Gopal.S
Hi Yoav, I have tested this issue, but it works well. I was not able to see this issue here. Please send your sample code, it will helps to solve the problem earlier. Thanks,
Gopal.S
Hi, First you should set the position of the Vertical Scroll into "0", then add the controls to the panel. Now it works fine. this.panel1.VerticalScroll.Value = 0; this.panel1.Controls.Add(objTextBox); Regards,
Gopal.S
Hi, You can use FormClosing event for disable the close button. private void Form1_FormClosing(object sender, FormClosingEventArgs e) { e.Cancel = true; } Please let me know if this help you. Thanks, Gopal.S
Gopal.S
Hi sindhutiwari, 1) First retrive the data from database to DataTable. DataTable objDataTable = new DataTable(); objDataTable.Columns.Add("DataColumn1"); objDataTable.Columns.Add("DataColumn2"); dr = objDataTable.NewRow(); dr[0] = "data1"; dr[1] = "yes" objDataTable.Rows.Add(dr); 2) Now you can bind this datatable to datagridview. You should set the "DataPropertyName" property of datagridview column. grdView.DataSource = objDataTable; this.grdColumn1.DataPropertyName = "DataColumn1"; this.grdColumn2.DataPropertyName = "DataColumn2"; // grdColumn2 is comboboxcell it contains 2 items (yes/no). other values not accepted. Regards,
Gopal.S
Here is the code snippet: private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { textBox1.Text = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString(); }
Gopal.S
Hi, Thanks for your reply. Could you send any sample or material links for this one? Regards,
Gopal.S
Hi, Is it possible to record the voice from phone using tapi with C#.Net ? Thanks,
Gopal.S