exception when setting a GGC cell value from textbox

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.


3 Replies

AD Administrator Syncfusion Team March 8, 2007 08:54 PM UTC

Hi,

Please try this,

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

Best regards,
Haneef


AD Administrator Syncfusion Team March 8, 2007 10:48 PM UTC

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


AD Administrator Syncfusion Team March 8, 2007 11:54 PM UTC

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

Loader.
Up arrow icon