# GRIDCOLHEADER problem

**URL:** <https://techcommunity.softwareag.com/t/gridcolheader-problem/57214>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [February 21, 2006, 8:51pm UTC](https://techcommunity.softwareag.com/t/gridcolheader-problem/57214 "2006-02-21T20:51:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakub\_Wojciechowski](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@Jakub\_Wojciechowski](https://techcommunity.softwareag.com/u/Jakub_Wojciechowski)\
**Post date:** [February 21, 2006, 8:51pm UTC](https://techcommunity.softwareag.com/t/gridcolheader-problem/57214/1 "2006-02-21T20:51:30Z")

</div>

Hi all,

I’m using FLEXGRID to display data from SQL database. When I create FLEXGRIDInfo object and define its column headers I cannot set “textid” for a column. Whenever I set “textid” I get empty header (without even “$en/something/…$”).  
Here is the code for it:

```auto
	public static FLEXGRIDInfo getFlexGridFromTransferList(Adapter adapter, TransferList transferList) {
		FLEXGRIDInfo fg = null;

		fg = new FLEXGRIDInfo(adapter);
		fg.clearColumnStructure();
		LineItem item = null;

		for (Iterator it = transferList.headline.iterator(); it.hasNext();) {
			String colName = (String) it.next();
			String valueProp = colName.replaceAll(" ", "");
			fg.addFieldColumn(valueProp, "100", "textid;" + colName, "transparentbackground;true");
		}

		for (Iterator itCol = transferList.data.iterator(); itCol.hasNext();) {
			Map map = (Map) itCol.next();
			item = new LineItem();
			item.setValues(map);
			fg.getLines().add(item);
		}
		return fg;
	}
```

I know that I can set column name using “replaceLiteral(…)” but then to change the language I will need to rebuild whole FLEXGRIDInfo object.  
Any idea how to create column headers which support multilanguage literals?

Regards,  
Jakub Wojciechowski

---

<div class="post-metadata">

**Author:** ![Bjoern\_Mueller](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@Bjoern\_Mueller](https://techcommunity.softwareag.com/u/Bjoern_Mueller)\
**Post date:** [February 22, 2006, 1:01am UTC](https://techcommunity.softwareag.com/t/gridcolheader-problem/57214/2 "2006-02-22T01:01:16Z")

</div>

…textid is not supported in the FLEXGRID - exactly because of the reason you mention: the structure of the grid is anyway program-defined and not set in a fix way.

You have to go the replaceLiteral() way.

Bjoern

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/gridcolheader-problem/57214/3 "2021-04-02T14:38:29Z")

</div>


