Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Components & Controls
Grids
Winforms Grids
Datagrid Problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Kim" data-source="post: 6977" data-attributes="member: 2680"><p>Hi all,</p><p></p><p>I have a datagrid and i use paging. I have a button for deleting everything in the datagrid (so not one by one).</p><p>Now my problem is when i click the button my code is the following:</p><p></p><p><span style="font-size: 10px"><span style="color: #0000ff">For</span></span><span style="font-size: 10px"><span style="color: #0000ff">Each</span></span><span style="font-size: 10px"> i </span><span style="font-size: 10px"><span style="color: #0000ff">As</span></span><span style="font-size: 10px"> DataGridItem </span><span style="font-size: 10px"><span style="color: #0000ff">In</span></span><span style="font-size: 10px"><span style="color: #0000ff">Me</span></span><span style="font-size: 10px">.dataGridPcGegevens.Items</span></p><p><span style="font-size: 10px">text = i.FindControl("TextNummer")</span></p><p><span style="font-size: 10px">nummer = text.Text.ToString()</span></p><p><span style="font-size: 10px">DefinitiefToevoegen(nummer)</span></p><p><span style="font-size: 10px"><span style="color: #0000ff">Next</span></span><span style="font-size: 10px"> i</span></p><p></p><p><span style="font-size: 10px">The problem is only the things on the page that is selected are deleted. Now i want to know is it possible to do this code for all the pages in the datagrid?</span></p><p></p><p><span style="font-size: 10px">Thx</span></p><p></p><p><span style="font-size: 10px">Kim</span></p><p><span style="font-size: 10px"></span></p></blockquote><p></p>
[QUOTE="Kim, post: 6977, member: 2680"] Hi all, I have a datagrid and i use paging. I have a button for deleting everything in the datagrid (so not one by one). Now my problem is when i click the button my code is the following: [size=2][color=#0000ff]For[/color][/size][size=2][color=#0000ff]Each[/color][/size][size=2] i [/size][size=2][color=#0000ff]As[/color][/size][size=2] DataGridItem [/size][size=2][color=#0000ff]In[/color][/size][size=2][color=#0000ff]Me[/color][/size][size=2].dataGridPcGegevens.Items[/size] [size=2]text = i.FindControl("TextNummer")[/size] [size=2]nummer = text.Text.ToString()[/size] [size=2]DefinitiefToevoegen(nummer)[/size] [size=2][color=#0000ff]Next[/color][/size][size=2] i[/size] [size=2]The problem is only the things on the page that is selected are deleted. Now i want to know is it possible to do this code for all the pages in the datagrid?[/size] [size=2]Thx[/size] [size=2]Kim [/size] [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
Components & Controls
Grids
Winforms Grids
Datagrid Problem
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom