Highlight a single cell on a datagrid.

G

Guest

Hello
I have a datagrid, called MyDataGrid and I wish to put the focus on a particular cell in order that the user to highlight the fact that the user needs to enter a value in this cell, e.g. I put the message up "Please enter an order number" I then wish to highlight the column MyDataGrid(0,1), but I can't find out how to do this

Many thanx in advance

Geri
 
K

Ken Tucker [MVP]

Hi,

Dim dgc As DataGridCell
dgc.RowNumber = 1
dgc.ColumnNumber = 1

DataGrid1.CurrentCell = dgc

Ken
 

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

Top