Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagridview-Cells -SelectionStart,SelectionLength?

Status
Not open for further replies.

Mahey

Programmer
Dec 24, 2008
52
SA
Hi,
With my form I have a datagridview, and from the datatable the data's are loading to datagridview.

But the problem is when it's getting focus, it's selecting the whole contents of the cell of column(0) & Row(0).

But I want to select like textbox

TextBox12.SelectionStart = 0
TextBox12.SelectionLength = 0

So the prompt will be in the starting position of cell...
Is it possible for datagridview cells?

My codings for datagridview
----------------------------

DataGridView1.DataSource = ds52.Tables(0).DefaultView

----------------------------------

Any Better Idea's For Me?

Thanks Again




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top