Getting Cloumn number

R

ree32

I have a datagrid with link buttons in each cell.

So when the button is selected. The cell changes the background color.
But when a a new button is selected the old cell has to change to the
normal color and the new cell has to change to a new color.

So I need to remeber the old cell's column number.

But I having problems in getting the column number, I can only get the
row number using e.item.itemIndex.

Is there a way ?
 
J

JohnFol

Me.DataGrid1.CurrentCell.ColumnNumber gives you the column number, so just
assign it to a variable and do the comparison.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,818
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top