<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/CustomTableView:removeColumn?action=history&amp;feed=atom</id>
	<title>CustomTableView:removeColumn - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/CustomTableView:removeColumn?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomTableView:removeColumn&amp;action=history"/>
	<updated>2026-05-18T14:16:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CustomTableView:removeColumn&amp;diff=57514&amp;oldid=prev</id>
		<title>AriosJentu: Created page with &quot;__NOTOC__ {{Client function}} This function removes column from Custom Table View.  == Syntax == &lt;syntaxhighlight lang=&quot;lua&quot;&gt; nil CustomTableView:removeColumn([ccolumn/int Col...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomTableView:removeColumn&amp;diff=57514&amp;oldid=prev"/>
		<updated>2018-08-06T09:04:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Client function}} This function removes column from Custom Table View.  == Syntax == &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; nil CustomTableView:removeColumn([ccolumn/int Col...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function removes column from Custom Table View.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil CustomTableView:removeColumn([ccolumn/int Column])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Other Arguments === &lt;br /&gt;
*'''Column''' - Index of Column in Table View (from 1) or Column Object, returned with [[CustomTableView:addColumn]]. Default is ''last''.	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
[[Image:CustomTabViewDefault.png|thumb|right|Code Example]]&lt;br /&gt;
[[Image:CustomTableViewAsScrollableList.png|thumb|right|Code Example with &amp;quot;K&amp;quot; clicked]]&lt;br /&gt;
This example creates window with table view, here added some columns and lines (rows), changed indentation between lines, removed line, removed column, set selected line, and filling of cells. Bound ''K'' button for showing and hiding title panel of Table View:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local Window = CustomWindow.create(50, 50, 250, 220, &amp;quot;Example&amp;quot;)&lt;br /&gt;
local TabView = CustomTableView.create(5, 25, 130, 40, false, Window)&lt;br /&gt;
&lt;br /&gt;
TabView:addLine(21)&lt;br /&gt;
local nline = TabView:addLine(25)&lt;br /&gt;
TabView:addLine(21)&lt;br /&gt;
local line = TabView:addLine(28)&lt;br /&gt;
TabView:addLine(21)&lt;br /&gt;
TabView:addLine(31)&lt;br /&gt;
TabView:addLine(21)&lt;br /&gt;
TabView:addLine(35)&lt;br /&gt;
TabView:addLine(21)&lt;br /&gt;
&lt;br /&gt;
TabView:removeLine(line)&lt;br /&gt;
TabView:setIndentation(5)&lt;br /&gt;
TabView:setSize(240, 190, false)&lt;br /&gt;
&lt;br /&gt;
TabView:setSelectedLine(3)&lt;br /&gt;
&lt;br /&gt;
TabView:addColumn(&amp;quot;Example&amp;quot;, 90)&lt;br /&gt;
TabView:addColumn(&amp;quot;Removed&amp;quot;, 90)&lt;br /&gt;
local col = TabView:addColumn(&amp;quot;Saved&amp;quot;, 90)&lt;br /&gt;
TabView:addColumn(&amp;quot;Last&amp;quot;, 90)&lt;br /&gt;
&lt;br /&gt;
TabView:removeColumn(&amp;quot;Removed&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
for i = 1, TabView:getLinesCount() do&lt;br /&gt;
	for j = 1, TabView:getColumnsCount() do&lt;br /&gt;
		TabView:setCellText(i, j, i..&amp;quot; &amp;quot;..j)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
bindKey(&amp;quot;k&amp;quot;, &amp;quot;up&amp;quot;, function()&lt;br /&gt;
	TabView:setTitleBarVisible(not TabView:getTitleBarVisible())&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
Window:setColorScheme(Themes.Dark.Red)	&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{CWSFUNCS}}&lt;/div&gt;</summary>
		<author><name>AriosJentu</name></author>
	</entry>
</feed>