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.

How I can find a label in a GridDataUnboundColumn by code

Thread ID:

Created:

Updated:

Platform:

Replies:

116994 Jul 16,2014 10:16 AM Jul 22,2014 07:54 AM WPF 1
loading
Tags: GridDataControl
Herbert Moroni Cavallari de Costa Gois
Asked On July 16, 2014 10:16 AM

How I can find a label in a GridDataUnboundColumn by code.

I'm looping the rows like this:
 for (int i = 0; i < GridObjetos.Model.View.Records.Count; i++)
{}

Jai Ganesh S [Syncfusion]
Replied On July 22, 2014 07:54 AM

Hi Herbert,

Thank you for using Syncfusion Products.

We have analyzed your query. You can get the GridDataUnboundVisibleColumn cell value by using  the following code example:

Code Snippet [C#]:

 

var columnIndex=this.SyncGrid.Model.CurrencyManager.CurrentCell.CellRowColumnIndex.ColumnIndex;

var rowIndex = this.SyncGrid.Model.CurrencyManager.CurrentCell.CellRowColumnIndex.RowIndex;

var value = this.SyncGrid.Model[rowIndex, columnIndex].CellValue;

 

 

We have also prepared the sample based on this and please find the sample under the following location:

Sample:

http://www.syncfusion.com/downloads/support/directtrac/127577/GridDataControlSample-582783667.zip

Please let us know  if you need further assistance.

Thank you,

Jai Ganesh S


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.

;