Hi,
I am new to .net. I believe this is a silly question.
When I link a datasource, such as an array, to datagrid, I don't see the new
record row at bottom of the grid. But when I linke datagrid to dataset, I can
see it. Why is that? Can I programmingly control when to show it?
Thanks,
Karl 5 1464
The answer is simple
array size is fixed. so it will show only fixed amount of records
--
samitha
"Karl" wrote: Hi, I am new to .net. I believe this is a silly question.
When I link a datasource, such as an array, to datagrid, I don't see the new record row at bottom of the grid. But when I linke datagrid to dataset, I can see it. Why is that? Can I programmingly control when to show it?
Thanks,
Karl
Thanks
"samitha" wrote: The answer is simple array size is fixed. so it will show only fixed amount of records -- samitha
"Karl" wrote:
Hi, I am new to .net. I believe this is a silly question.
When I link a datasource, such as an array, to datagrid, I don't see the new record row at bottom of the grid. But when I linke datagrid to dataset, I can see it. Why is that? Can I programmingly control when to show it?
Thanks,
Karl
Thanks
"samitha" wrote: The answer is simple array size is fixed. so it will show only fixed amount of records -- samitha
"Karl" wrote:
Hi, I am new to .net. I believe this is a silly question.
When I link a datasource, such as an array, to datagrid, I don't see the new record row at bottom of the grid. But when I linke datagrid to dataset, I can see it. Why is that? Can I programmingly control when to show it?
Thanks,
Karl
Hi Karl,
To control whether the grid displays the "new record" row, your data source
must implement the IBindingList interface. The AllowNew and AllowRemove
properties of this interface control the grid's appearance and behaviour.
--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Karl" <Ka**@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com... Hi, I am new to .net. I believe this is a silly question.
When I link a datasource, such as an array, to datagrid, I don't see the new record row at bottom of the grid. But when I linke datagrid to dataset, I can see it. Why is that? Can I programmingly control when to show it?
Thanks,
Karl
Hi Karl,
To control whether the grid displays the "new record" row, your data source
must implement the IBindingList interface. The AllowNew and AllowRemove
properties of this interface control the grid's appearance and behaviour.
--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Karl" <Ka**@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com... Hi, I am new to .net. I believe this is a silly question.
When I link a datasource, such as an array, to datagrid, I don't see the new record row at bottom of the grid. But when I linke datagrid to dataset, I can see it. Why is that? Can I programmingly control when to show it?
Thanks,
Karl This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Clayton Hamilton |
last post by:
I have a DataGrid on a webform bound to a Datasource and can
successfully use <ItemTemplate> to create edit/update/cancel
functionality for user maintenance of data. I use separate logic to
delete...
|
by: Maqsood Ahmed |
last post by:
Hello!
There is a DataGrid on a form that is populated through DataTable and
filters have been applied to through DataView. The DataTable gets
updated through some events and obviously it also...
|
by: Karl |
last post by:
Hi all,
I have naive question about datagrid. When the total record number in
datagrid is less than the datagrid row number, datagrid doesn't show the
vertical scrollbar. Otherwise, it shows...
|
by: Jim Heavey |
last post by:
Trying to figure out the technique which should be used
to add rows to a datagrid. I am thinking that I would
want an "Add" button on the footer, but I am not quite
sure how to do that. Is that...
|
by: Sky |
last post by:
Hello:
Another question about trying to wring functionality from a DataGrid...
Have a DB table of "Contacts" -- 14 or more fields per record
Show in datagrid -- but only 5 columns (First,Last,...
|
by: tshad |
last post by:
I want to use a datagrid with my display, but I don't want to use 1 row per
record.
What I have is a record with up to 6 values -
(answer1,answer2,answer3,answer4,answer5,answer6). I want to...
|
by: I am Sam |
last post by:
I need to be able to delete a record/row from a database table. I am using a
DataGrid which is not sending the row index key properly to the event in the
codebehind. When I set a break point and...
|
by: mfahnestock |
last post by:
Hi all!
Aspiring VB programmer losing hair <And Sleep> over this problem. I
have spent several days researching through the various usenets and
resources to no avail, and so now I am taking the...
|
by: Brian Tkatch |
last post by:
I have a form with two DataGrids, which are kept in sync manually via
Stored PROCEDURE calls. That is, when a record is selected on the first
grid, a stored PROCEDURE is CALLed to Fill() the next...
|
by: brock wade |
last post by:
I have a Datagrid that is working fine displying my records, but I'm
trying to program buttons
on each record line to launch another web page that shows all the
details for the product:
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
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...
|
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...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |