How to populate a winform from a selected row of a GridGroupingControl

Hello,

I'm very new in Syncfusion products.
My first test is a GridGroupingControl loaded from a sql table.
My purpose, when I doubleclick on a row, is to load a form populated by the datas of this row.
I've found this example :

record r = gridGroupingControl1.Table.CurrentRecord;
int col = this.gridGroupingControl1.TableControl.CurrentCell.ColIndex;
int field = this.gridGroupingControl1.TableDescriptor.ColIndexToField(col);
object o = r.GetValue(this.gridGroupingControl1.TableDescriptor.Fields[field]);
Console.WriteLine(o);

But I have an error (in french) that an assembly is missing ... but I don't find which one to declare.

Thanks for your help
Regards
Christian

3 Replies

AA Arulraj A Syncfusion Team September 5, 2018 06:00 AM UTC

Hi Christian, 
 
Thanks for using Syncfusion product. 
 
We suspect you have missed to attach the reference assembly (Syncfusion.Grouping.Base.dll) of GridGroupingControl. Please ensure that the following dependent assemblies are attached in your project, 
 
  • Syncfusion.Grid.Base.dll
  • Syncfusion.Grid.Windows.dll
  • Syncfusion.Grid.Grouping.Base
  • Syncfusion.Grid.Grouping.Windows.dll
  • Syncfusion.Grouping.Base.dll
  • Syncfusion.Shared.Base.dll
 
 
Please refer the following UG link, 
 
We have prepared the sample based on your requirement. Please refer the following attached sample, 
 
Regards, 
Arulraj A 



CH Christian September 5, 2018 08:45 PM UTC

Thanks a lot for your help.

Regards
Christian




AA Arulraj A Syncfusion Team September 6, 2018 06:05 AM UTC

Hi Christian, 

Thanks for the update. 

We are glad to know that the reported problem has been solved at your end. Please let us know if you have any further queries on this. We are happy to help you. 

Regards, 
Arulraj A 


Loader.
Up arrow icon