try with this while (dr.Read())
Where there is a will,there is a way.
try with this while (dr.Read())
Where there is a will,there is a way.
hi, Simple dont show the form to the user just export the report pdf file into %temp% folder and show the pdf file to the user. good luck
Where there is a will,there is a way.
i think you are missing public keyword... try the below. public static setting_dataTableAdapter settingsAdapter = new setting_dataTableAdapter();
Where there is a will,there is a way.
i think the easy way is fire event from reading loop and catch in the progressbar form and change the indicator according to that. i customised the EventArgs with TotBytes and TotRead. it is working for me. good luck
Where there is a will,there is a way.
use crviewer control export or expoertodisk...option... ReportDocument.ExportToDisk( ExportFormatType.PortableDocFormat, FileName);
Where there is a will,there is a way.
hi you can overide controlsadded in your usercontrol and destroy the added component and create new instance of the same and add to your panel. but there is a problem.. as it can add to the controls to panel but you can relocate the cotrol. The code is below,sorry dont have much time to explore more in to it.Dont know how helpful its to you.. good luck. bool _tmpOnRelocate = false; protected override void OnControlAdded(ControlEventArgs e) { try { DesHost = this.Container as IDesignerHost; if (DesHost != null && e.Control.Parent == this) { if (_tmpOnRelocate) return; this.SuspendLayout(); Control _Holder = e.Control; _Holder.Location = new Point(0, 0); _tmpOnRelocate = true; IComponent _tmpComp = DesHost.CreateComponent(_Holder.GetType()); DesHost.DestroyComponent(e.Control as Component); ((Control)_tmpComp).Parent = this.panel2; this.panel2.Controls.Add(_tmpComp as Control); this.ResumeLayout(); _tmpOnRelocate = false; } else { base.OnControlAdded(e); } } catch (Exception ee) { MessageBox.Show(ee.Message); } //base.OnControlAdded(e); }
Where there is a will,there is a way.
dataGridView1.Rows[x].Cells[3].Style.BackColor = Color.Red;// color red dataGridView1.Rows[x].DefaultCellStyle.BackColor = System.Drawing.Color.Red good luck
Where there is a will,there is a way.
http://support.microsoft.com/default.aspx?scid=kb;en-us;813450[^] try this... good luck
Where there is a will,there is a way.
There are few ways to do that, 1)If you have reports in your project itself you can use iteract with section items collection and make appripriate items suppress attribute to false. 2)If you have reports as report file(*.rpt) you can play around with the datasource, a) Make sure you have selected verify database on every print b) by using ADO.NET method fill a dataset with selected fileds,then set the datatable or dataview as a datasource for the report. the second solution worked for me with a simple check list report,never tried the first one.. Good luck Where there is a will,there is a way.
Where there is a will,there is a way.
hi, ofcourse you need iis,its not nessary to install VS2005. you can download net framework 2.0 redistributable and install in live machine. if the live machine has autoupdate on for windows update,it will be there. you can verify it in IIS properties. good luck Where there is a will,there is a way.
hi, dont know how good is this method.i did like this last time String tmp =Words; do while(tmp.indexOf(" ")>0) // Do while you find two continuous spaces and remove those.. { tmp = tmp.Replace(" "," "); } int TotalWords = tmp.Split(' ').Length; Where there is a will,there is a way.
hi, i think there is no direct method to accompolish this with C#.you have to use API like bitblt and compare the colors and change.. you can try with GDI/Graphic section...There is a lot of samples i found last time. good luck Where there is a will,there is a way.
hi , textBox1.Text = grid["T075_BORGTOCHTNUMMER_1",row].Value.ToString(); sorry man, i wrote just on the fly..didnt check the syntax. good luck. Where there is a will,there is a way.
hi, my previous reply for that particular error message. if you want to get a value from gridview you could use something like this textbox1.Text = myGridView[RowIndex]["T075_BORGTOCHTNUMMER_1"].Value.ToString(); the error mentioned in your last mail related to your dataset not with datagridview... good luck. Where there is a will,there is a way.
hi, Datagridview dont have a currentRowIndex property it has to be rewritten like this . int rowIndex = dBANBM_T075_BORGTOCHTDataGridView.CurrentCell.RowIndex or you can rewrite CustomRow(this, new CustomRowEventArgs(testdb1DataSet, dBANBM_T075_BORGTOCHTDataGridView, dBANBM_T075_BORGTOCHTDataGridView.CurrentCell.RowIndex)); good luck Where there is a will,there is a way.
Hi all, can anyone tell me why my(Test) custom property is value can not be stored. Its always null.Its displaying in property window and getting user input. Thanks in advance.. using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.ComponentModel; namespace EMS.NET { [ToolboxItem(false)] public class JTextBoxColumn : System.Windows.Forms.DataGridViewColumn { public JTextBoxColumn(): base(new JTextBoxCell()) { } private String mTest; [TypeConverter(typeof(StringConverter))] [Browsable(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] public String Test { get { return mTest; } set { mTest = value; } } public override DataGridViewCell CellTemplate { get { return base.CellTemplate; } set { if (value != null && !value.GetType().IsAssignableFrom(typeof(JTextBoxCell))) { throw new InvalidCastException("Must be a Text Box Cell"); } base.CellTemplate = value; } } } [ToolboxItem(false)] public class JTextBoxCell : DataGridViewTextBoxCell { public JTextBoxCell() : base() { } private String mTest; public String Test { get { return mTest; } set { mTest = value; } } public override void InitializeEditingControl(int rowIndex, object initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle) { base.InitializeEditingControl(rowIndex, initialFormattedValue, dataGridViewCellStyle); JTextBoxEditingControl ctl = DataGridView.EditingControl as JTextBoxEditingControl; ctl.Dock = DockStyle.Fill; if (this.Value == null || this.Value.ToString() == System.DBNull.Value.ToString()) ctl.Text = "Null"; else ctl.Text = this.Value.ToString(); } public override Type EditType { get { // Return the type of the editing contol that CalendarCell uses. return typeof(JTextBoxEditingControl); } } public override string T