We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

exception when setting a GGC cell value from textbox

Thread ID:

Created:

Updated:

Platform:

Replies:

57697 Mar 8,2007 02:33 PM Mar 8,2007 06:54 PM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 8, 2007 02:33 PM

Hi,
I'm trying to do the following:

rec = this.GGC.Table.CurrentRecord;

this.GGC.Table.GetTableCellStyle(rec, "MyField").CellValue = this.txtMyField.Text;

but I get an exception "The specified argument was out out of the range of valid values"

My record is not null and this code works elsewhere - can you help with this?

Thanks vm.


Administrator [Syncfusion]
Replied On March 8, 2007 03:54 PM

Hi,

Please try this,

Record rec = this.GGC.Table.CurrentRecord;
rec.SetValue("MyField",this.txtMyField.Text);

Best regards,
Haneef

Administrator [Syncfusion]
Replied On March 8, 2007 05:48 PM

Hi Haneef,
That works - why does the other not work? It's fine on other GGCs..

>Hi,

Please try this,

Record rec = this.GGC.Table.CurrentRecord;
rec.SetValue("MyField",this.txtMyField.Text);

Best regards,
Haneef

Administrator [Syncfusion]
Replied On March 8, 2007 06:54 PM

Now I get the same error with this:

rec.SetValue("status", this.cmbCombo.Text);



>Hi Haneef,
That works - why does the other not work? It's fine on other GGCs..

>Hi,

Please try this,

Record rec = this.GGC.Table.CurrentRecord;
rec.SetValue("MyField",this.txtMyField.Text);

Best regards,
Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;