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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.