473,511 Members | 16,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Delete a row in MSFLEXGRID

34 New Member
Hi guys, how to delete a row in msFlexgrid? I have no problem in adding one... let say i have 5 rows, and i want to delete a row... the 3rd one.. Thanks
Oct 18 '07 #1
4 8941
QVeen72
1,445 Recognized Expert Top Contributor
Hi,

Are you Looking for this :

Grd.RemoveItem 2
' Zero Based 2=3rd row

Regards
Veena
Oct 18 '07 #2
GROG
34 New Member
[Thanks a million veen... but i still have a problem..
i just "can't delete the last row of a non-fixed row" ( that was the error message looks like) ... is it possible to delete it? or how can i manipulate this error to be an input/trigger for my next action..? if its really cant be romoved i would like to empty the whole row.. but the row still there...

e.g

given;
errorr 30015 ="can't delete the last row of a non-fixed row"

On error30015 goto err <<<--- is this the right syntax?

err:
Msflexgrid.textmatrix (XX,YY) = ""
Oct 19 '07 #3
QVeen72
1,445 Recognized Expert Top Contributor
Hi,

When rows are 2 (with one fixed row...) you cannot delete the last row with remove item..
just use this :

Expand|Select|Wrap|Line Numbers
  1. If Grd.Rows=2 Then
  2.    Grd.Rows =1
  3. Else
  4.   Grd.RemoveItem Grd.Row
  5.   "Removes Selected Row, Change this if using a Variable..
  6. End If
  7.  
REgards
Veena
Oct 19 '07 #4
GROG
34 New Member
Thanks again, it is really a big help.... :)
Oct 25 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1401
by: Martin K | last post by:
Hello all..thanks for everyone's advice regarding my SHBrowseForFolder API problem, I was able to put together a public class that runs great! But I have another migration headache regarding the...
1
4909
by: Mad Scientist Jr | last post by:
can someone explain how to simply populate a grid in .net ? the way i understand it, there is no more msflexgrid, and instead is this new control that has to be tied to a dataset, and it is a real...
0
1281
by: Jim | last post by:
How would you guys approach this. Im manually populating a MSFLEXGRID with records from an access database, and displaying it to the user. I want to give the user an edit button, putting them in an...
1
16685
by: zoneal | last post by:
Hi, I am involved in the process of migrating vb(6.0) application to vb.net. My application contains only vb controls namely MSFLEXGRID. I want to migrate my application to vb.net completely...
1
5085
by: Steven | last post by:
I develop the application which contains MSFlexGrid to display data. When I try to fill the grid with the text data, I want to adjust the column width so that the width is adjusted to the maximum...
5
8368
by: Ishmael | last post by:
Hi Is Been a 3 Yrs Now (I Still trying to do this) Please help me to do this with Visual Basic 6.0 using Msflexgrid Let say you are the Principal . You have 10 educators and 5 class (Grades)...
0
866
by: godhulirbalaka | last post by:
I have a problem with msflexgrid. I have few field in a form and a msflexgrid with few rows. I want if i double click on the row then the information should go to the relevant field. I have done it...
1
4327
by: MiziaQ | last post by:
Hey, how can I delete an entire row from an MSFlexGrid table, and how can I allow the user to only select one row (i.e. not allow multiselection of rows ?) Thanks in advance, MiziaQ
3
2582
by: MiziaQ | last post by:
Hey, I would like to delete a row of data from my data file, though using an MSFlexGrid. I can currently delete any selected row, though it only deletes a row from the Grid, and not the entry itself....
0
7242
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
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7423
jinu1996
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...
0
7510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.