Hello,
I found that the "official example" from the Knowledge Base isn''t working for me. I never get the right row when I use:
CurrencyManager cm = (CurrencyManager)this.BindingContext[this.gridDataBoundGrid1.DataSource];
DataRowView dr = (DataRowView)cm.Current;
as described in the example.
What is working for me is:
CurrencyManager cm = (CurrencyManager) this.BindingContext[this.grid1.DataSource, this.grid1.DataMember];
DataRow dr = ((DataRowView) ((DataView)cm.List)[grid1.Binder.CurrentPosition]).Row;
I can''t say that I understand what happens here. Do I make something wrong?
The underlying Datasource for the GDBG is a DataTable and I''m working with Syncfusion 4.1 and VSProf2003 (.NET 1.1).
>Hi Calvin,
>
>Thanks for your prompt response.
>
>Will checkout the sample n let you know if we are doing any different in our code.
>
>Regards,
>Preethi.
>
>>Hi Preethi,
>>
>>Attached is a
sample which gets a column value from the underlying DataRow. If you can reproduce the issue in the attached sample and send it back, we can get back soon with a solution.
>>
>>Regards,
>>Calvin.