Infragistics ultrawinGrid - selecting the rowid

The Infragistics ultrawinGrid is populated with the dataset.  The id column is hidden column in the grid. The grid has one button column. Every row in the grid has one button. when the button is clicked, clickcellbutton event happens and the user has to redirected to id specific form.
1.How to capture the id in the wingridrow?
pls let me know the possible ways.

Thank You
Who is Participating?
ZeonFlashConnect With a Mentor Commented:
On the ClickCellButton event, the handler should give you the CellEventArgs object, which contains a reference to the cell that was clicked.  From that, you can get the row the cell is in, and from the row you can get the value of the ID cell:
this.ultraGrid1.ClickCellButton += new CellEventHandler(ultraGrid1_ClickCellButton);
private void  ultraGrid1_ClickCellButton(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
	object ID = e.Cell.Row.Cells["ID"].Value				   ;

Open in new window

KavyaVAuthor Commented:
I tried this in ClickCellButton event and it's worked.
int id = Conver.ToInt32(ultraGrid1.ActiveRow.Cells["ID"].Value);
What u suggested also worked. Thank u.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.