Ask a Question related to ASP.NET General, Design and Development.
-
Robin Bonin #1
Access to Rows in a datagrid
I am working on a page to allow editing of products in out database. I'd
like to bind a datareader to the table. And on submit generate an update
query for each row. My problem is that I can't find out how to iterate
through all the rows in the dataGrid
I don't want to use the built in edit mode available because there are going
to be allot of small changes and would be time consuming to hit edit for
each row.
I'm hoping that I can do something like this
For each row in datagrid
value1 = row.textBox1.value
value2 = row.textBox2.value
' sql work
Next
Robin Bonin Guest
-
Number of rows in a datagrid
I discovered the hard way that the property "VisibleRowCount" of a datagrid is ONLY that, the number of visible rows, NOT the number of populated... -
DataGrid Reorder Rows
here is a function I wrote to reorder rows in a datagrid. I call it with two buttons, up and down both with click events like so:... -
Select datagrid rows with key-up and key-down?
I have an application that uses a windows forms datagrid. How do I select rows using the up-arrow and down-arrow keys? Mervin Williams -
Two rows for each record in DataGrid
Hello all, I have posted similar question in another group a while ago (before this group came into existence) but would like to double-check on... -
Adding rows to a Datagrid
Jason, Thanks for the reply. Yes... it would be possible... but I also don't want to commit deletes/changes to the child records until they are... -
Jon Sequeira #2
Re: Access to Rows in a datagrid
Sounds like you want the DataGridItem object.
For Each item as DataGridItem in gridMain.Items
' do stuff
Next
HTH,
--Jon
"Robin Bonin" <robin@guavatools.com> wrote in message
news:ZXednQ98YeZaGJCiXTWJiA@eatel.net...going> I am working on a page to allow editing of products in out database. I'd
> like to bind a datareader to the table. And on submit generate an update
> query for each row. My problem is that I can't find out how to iterate
> through all the rows in the dataGrid
>
> I don't want to use the built in edit mode available because there are> to be allot of small changes and would be time consuming to hit edit for
> each row.
>
>
>
> I'm hoping that I can do something like this
>
>
>
> For each row in datagrid
>
> value1 = row.textBox1.value
>
> value2 = row.textBox2.value
>
> ' sql work
>
> Next
>
>
>
>
Jon Sequeira Guest



Reply With Quote

