Jump to content


Photo

Select column


  • Please log in to reply
4 replies to this topic

#1 leonidus

leonidus
  • Members
  • 29 posts

Posted 08 June 2012 - 09:05 AM

Hello.

Please help me. I need to select some column for delete all values in each rows. Is it possible in TNextGrid?

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 08 June 2012 - 01:46 PM

Hi,

I am not sure what you need. You may simply select cell and then use for loop to delete all values where X = SelectedColumn property.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 leonidus

leonidus
  • Members
  • 29 posts

Posted 08 June 2012 - 09:29 PM

I want to give an opportunity to user select some column and press "Del" like in Excel. If you in Excel click on column header you select full column and you can for example clear all cells.

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 08 June 2012 - 10:40 PM

Hi,

This is unfortunately not possible. But you may use OnCellColoring event to change color of all cells in selected column.

Inside OnSelect event you refresh column and then inside OnCellColoring set CellColor var parameter.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 leonidus

leonidus
  • Members
  • 29 posts

Posted 21 June 2012 - 01:41 PM

Ok, thanks!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users