473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

extra row

Hi all

I connect DataGrid with table:

dataGrid1.DataSource = dataSet.Tables[0].DefaultView;

There always an extra row, How can I delete it? or can I control this row?

Moti

Nov 17 '05 #1
6 1036
"Moti" <Mo**@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
I connect DataGrid with table:

dataGrid1.DataSource = dataSet.Tables[0].DefaultView;

There always an extra row, How can I delete it? or can I control this
row?


Is this the extra row where it allows you to type in a new one?

-- Alan
Nov 17 '05 #2
Hi Alan

Yes it is, I want to delete this row, and only in "insert" mode to open 1 row

Moti

"Alan Pretre" wrote:
"Moti" <Mo**@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
I connect DataGrid with table:

dataGrid1.DataSource = dataSet.Tables[0].DefaultView;

There always an extra row, How can I delete it? or can I control this
row?


Is this the extra row where it allows you to type in a new one?

-- Alan

Nov 17 '05 #3
"Moti" <Mo**@discussions.microsoft.com> wrote in message
news:11**********************************@microsof t.com...
Yes it is, I want to delete this row, and only in "insert" mode to open 1
row


If you set the grid's ReadOnly property to true, that row will go away. I
suppose you could toggle the property in the different modes.

-- Alan
Nov 17 '05 #4
hHi Alan

Tank you.

Do you know if i can limit the row that open ?
I want to open only 1 every insert.

Moti

"Alan Pretre" wrote:
"Moti" <Mo**@discussions.microsoft.com> wrote in message
news:11**********************************@microsof t.com...
Yes it is, I want to delete this row, and only in "insert" mode to open 1
row


If you set the grid's ReadOnly property to true, that row will go away. I
suppose you could toggle the property in the different modes.

-- Alan

Nov 17 '05 #5
"Moti" <Mo**@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
Do you know if i can limit the row that open ?
I want to open only 1 every insert.


You may be able to catch the RowChanging or RowChanged event on the
underlying DataTable. If the Row Action shows added, then maybe you could
set the grid to ReadOnly? Just thinking out loud here, I haven't actually
tried it myself.

-- Alan
Nov 17 '05 #6
Thank you

I will try it

Moti

"Alan Pretre" wrote:
"Moti" <Mo**@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
Do you know if i can limit the row that open ?
I want to open only 1 every insert.


You may be able to catch the RowChanging or RowChanged event on the
underlying DataTable. If the Row Action shows added, then maybe you could
set the grid to ReadOnly? Just thinking out loud here, I haven't actually
tried it myself.

-- Alan

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Sidharta | last post by:
Hi all, how come this doesn't work????? # convert to unix new lines $text = preg_replace("/\r\n/", "\n", $text); # remove extra new lines $text = preg_replace("/\n+/", "\n", $text); is...
1
by: Ragnorack67 | last post by:
Hi, I need some advice on what to do. I have this MySQL insert file, with about 30,000 records. One of the datafields has names in it. When this list was put together, apparently there was extra...
2
by: A.M. de Jong | last post by:
How may extra bits does a NULL column contain. And how many extra bits does a varchar column contain. (I 've worked with Ingres and in that environment it both needed 2 extra bits) Bye, ...
0
by: scooterm | last post by:
### Question Can anyone name a text editor or XML editor (prefer open source) that can open a simple table XML file in a spreadsheet-type GUI, without adding any extra formatting or junk to the...
9
by: Neil Ginsberg | last post by:
I have a strange situation using Access to automate a Word mail merge. Using Access 2000 and Word 2000, the code opens Word, opens the document in Word, sets a table in the calling Access...
0
by: Sebastjan Trepca | last post by:
Hi, I'm trying to distribute my application which also support some extra libraries but does not require them to run. I set the "extra" option but I don't know how could I specify that I want to...
5
by: dw | last post by:
hello - first, let me state that i am an Asp.Net rookie. here is the situation: i have a page that looks good in the vs.net designer, but when the page renders there are extra amounts...
2
by: ricky | last post by:
Can anybody help with the function to get rid of extra characters in the file. I want to remove the string from the file.So i read from input file and pass the string say "john" if found dnt write...
11
by: cdkorzen | last post by:
I'm sorry if this is a rehash, but all I see is the same info. Here's my debacle: I CAN get the PATH_INFO to work. With ANYTHING but ASP. Python, Perl, Cmd files... works fine. ASP can't...
8
by: dancer | last post by:
Using ASP.net 1.1 to create user input form. When I put a RequiredFieldValidator I have extra space at the bottom of the cell, as if I had put a <br>. When I comment out the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.