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 CAN I GET THE VALUE OF A CELL, IN A ROW SELECTED IN GRIDDATABOUND CONTROL?

Thread ID:

Created:

Updated:

Platform:

Replies:

116996 Jul 16,2014 11:38 AM Jul 22,2014 03:49 AM Windows Forms 3
loading
Tags: GridDataBoundGrid(Classic)
Juan Zavala
Asked On July 16, 2014 11:38 AM

HELLO Syncfusion. 
I´M GRIDDATABOUND FILLING WITH A DATASET, AND I NEED TO GET THE VALUE OF A CELL OF USER SELECT ROW. 

THANKS AND GREETINGS.

Maniratheenam Sehar [Syncfusion]
Replied On July 18, 2014 01:18 PM

Hi Juan Zavala,

 

Thank you for your interest in Syncfusion Products.

 

We would like to let you know that the reported query can be resolved just by use of below code snippet,

 

CodeSnippet:

 

GridCurrentCell cc = this.GridDataBoundGrid1.CurrentCell;

int rowIndex = cc.RowIndex;

 

 

For your better convenience, we have added a sample below,

http://www.syncfusion.com/downloads/support/directtrac/general/GDBC-Sample-1345162240.zip

 

Please let us know, if you have any further concerns.

 

Regards,

ManiRatheenam S


Juan Zavala
Replied On July 21, 2014 06:31 PM

HELLO SYNCFUSION. 
FIRST, THANK YOU FOR YOUR PROMPT REPLY, MUCH SERVED ME, NOW I DOUBT THAT CAME WHEN CAN GET ANY CELL VALUE OF SELECTED ROW INSIDE AND NOT ONLY ROWINDEX, BUT, FOR EXAMPLE THE VALUE OF CELL WITH CONTENTS 3 OR THE NAME "NOMINAID". 

THANKS && REGARDS.

Maniratheenam Sehar [Syncfusion]
Replied On July 22, 2014 03:49 AM

Hi Juan Zavala,

 

Thanks for the update.

 

Query:

RowIndex with corresponding cell value

We would like to convey that your reported query can be achieved by codesnippet given below,

Codesnippet:

GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;

      int rowIndex = cc.RowIndex;

      int colIndex = cc.ColIndex;

 MessageBox.Show("Row Index=" + rowIndex + "\n" + "Column Index=" + colIndex + "\n" + "Cell Value=" + this.gridDataBoundGrid1[rowIndex, colIndex].Text);

 

Where “this.gridDataBoundGrid1[rowIndex, colIndex].Text” will get the value of the selected cell.

Moreover, for your better convenience, we’ve added a sample below,

http://www.syncfusion.com/downloads/support/directtrac/general/CellValue2002924064.zip

 

 

Please let us know, if you have any further concerns.

 

Regards,

ManiRatheenam 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.

;