3 Replies - 294 Views - Last Post: 08 February 2012 - 08:20 AM Rate Topic: -----

Topic Sponsor:

#1 insik  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 31-January 12

Deleting a specific value in flexgrid

Posted 08 February 2012 - 07:15 AM

Hi..I want to know how to delete a specific value in my flexgrid.The only code that I have is for deleting the whole column in the flexgrid.What I want to achieve is to delete only 1 value in my flexgrid.This is my code.

   If (grd.Rows > grd.FixedRows + 1) Then
            grd.RemoveItem grd.Row
   Else
            grd.Rows = grd.FixedRows
   End If


Is This A Good Question/Topic? 0
  • +

Replies To: Deleting a specific value in flexgrid

#2 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: Deleting a specific value in flexgrid

Posted 08 February 2012 - 07:38 AM

How is this different from your original post here?
Was This Post Helpful? 0
  • +
  • -

#3 raziel_  Icon User is offline

  • Like a lollipop
  • member icon

Reputation: 423
  • View blog
  • Posts: 4,132
  • Joined: 25-March 09

Re: Deleting a specific value in flexgrid

Posted 08 February 2012 - 07:38 AM

You can look at the cells of the flex grid as 2D array. This MSFlexGrid1.TextMatrix(1, 0)="test" means that you input "test" in the first row(1) on the first column(0). Note that row begins from 1 instead of 0 this is because the first row (0) is used for the headers of the columns. Now that you know how to input "test" in the first row on the first column try to solve your problem if you have troubles test the code that you try and we will be glad to help you :)
Was This Post Helpful? 0
  • +
  • -

#4 insik  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 31-January 12

Re: Deleting a specific value in flexgrid

Posted 08 February 2012 - 08:20 AM

Where should I insert this in my code?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1