Em Andamento

C# DataGridView - quick question

I have a very quick and simple question. Don't put the bid price to $30..thinking it is in $30-100 range...I don't have any option less than that. I am ready to pay $5-10

I have a datagridview1 on my form.

The datagridview1 has Col_1, Col_2 and Col_3.

My code:

[url removed, login to view]["Col_1"].ReadOnly = true;

[url removed, login to view]["Col_3"].ReadOnly = true;

Problem:

The tab index will not skip the read only column.

Solution:

You can just create a dumy datle with three columns (col_1 int, col_2 int, col_3 int).

CommandText = "Select * from dumy"

dataAdaptor...

dataset...

[url removed, login to view] = [url removed, login to view][0];

[url removed, login to view]["col_1"].ReadOnly = true;

[url removed, login to view]["col_3"].ReadOnly = true;

all three column should be visible.

tab index should not stop at col_1 or col_3.

so tab key will go to next row.

NEED THIS IN C# 2005

Habilidades: .NET

Ver mais: datagridview, search datagridview, datagridview next row, datagridview next cell, datagridview readonly, datagridview cell tab index, datagridview enter tab, datagridview select next row, datagridview search, select next row datagridview, datagridview select row, datagridview tab skip readonly, datagridview1, datagridview tab, goto next row datagridview enter, next row datagridview, tab stop datagridviewcell, search row datagridview, create find find next datagridview, datagridview tab next row, datagridview tabstop, tab key datagrid next row, datagridview tab stop, datagridview tab stop read, datagridview search row

Acerca do Empregador:
( 5 comentários ) Jenkintown, United States

ID do Projeto: #130981