when I run my application for some users it gives me the following message
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IndexOutOfRangeException: There is no row at position 0.
at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
at System.Data.DataRowCollection.get_Item(Int32 index)
at InvitationAndEducation.frm_main_screen.Form1_Load( Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
InvitationAndEducation
Assembly Version: 1.0.2778.29967
Win32 Version: 1.0.2778.29967
CodeBase: file:///E:/IPO%20Setup/InvitationAndEducation.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
any body help...
Kanhialal kkPosted May 23, 2011, 12:39 PM
another request.
I am working on AxMSFlexGridLib as a Girdview, also I have taken a combobox in my application. Now I want to put the data into AxMSFlexGridLib where Id=Combox.
but problem is that I want to set the data where row is focused in AxMSFlexGridLib.
and i did code as:
private void workercombo_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
if (!this.check)
{
this.check = true;
}
else
{
this.combo1.SelectedIndex = this.workercombo.SelectedIndex;
this.lblname2.Text = this.combo1.Text;
this.combo2.SelectedIndex = this.workercombo.SelectedIndex;
for (int i = 1; i
for (int j = 1; j < this.flex1.Cols; j++)
{
if ((this.flex1.get_TextMatrix(i, 5).Length == 0) && ((this.flex1.get_TextMatrix(i, 4).Length > 0) || (this.flex1.get_TextMatrix(i, 8).Length > 0)))
{
this.flex1.set_TextMatrix(i, 5, Convert.ToString(this.workercombo.Text));
this.flex1.set_TextMatrix(i, 6, this.lblname2.Text);
this.flex1.set_TextMatrix(i, 7, Convert.ToString(this.combo2.Text));
return;
}
}
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message,"Error!");
}
}
but this is working in a series one by one from top to bottom while my requirement is to set the data on focused row. or selected row.
Vilas GitePosted May 23, 2011, 6:13 AM
yeah! Vulpes said exactly... Application need atleast one record/row for proper execution. So, Just put validation on rowcount=0 do nothing else control.
:)
VulpesPosted May 23, 2011, 5:09 AM