{"action":"created","issue":{"url":"https://api.github.com/repos/zippyui/react-datagrid/issues/180","repository_url":"https://api.github.com/repos/zippyui/react-datagrid","labels_url":"https://api.github.com/repos/zippyui/react-datagrid/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/zippyui/react-datagrid/issues/180/comments","events_url":"https://api.github.com/repos/zippyui/react-datagrid/issues/180/events","html_url":"https://github.com/zippyui/react-datagrid/issues/180","id":135339578,"number":180,"title":"How can I apply css classes to column headers and rows? OR is there any way to give row/column templates?","user":{"login":"sravanrekandar","id":2802088,"avatar_url":"https://avatars.githubusercontent.com/u/2802088?v=3","gravatar_id":"","url":"https://api.github.com/users/sravanrekandar","html_url":"https://github.com/sravanrekandar","followers_url":"https://api.github.com/users/sravanrekandar/followers","following_url":"https://api.github.com/users/sravanrekandar/following{/other_user}","gists_url":"https://api.github.com/users/sravanrekandar/gists{/gist_id}","starred_url":"https://api.github.com/users/sravanrekandar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sravanrekandar/subscriptions","organizations_url":"https://api.github.com/users/sravanrekandar/orgs","repos_url":"https://api.github.com/users/sravanrekandar/repos","events_url":"https://api.github.com/users/sravanrekandar/events{/privacy}","received_events_url":"https://api.github.com/users/sravanrekandar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-22T07:25:08Z","updated_at":"2016-03-07T07:03:52Z","closed_at":null,"body":"I am looking for some configuration like  => **className:'my-css-class**\r\n```\r\ncolumns = [ { name: 'column name', title: 'Name', className:'my-css-class' },\r\n```\r\nfor Rows,\r\n```\r\n<Datagrid\r\n  ..\r\n  ..\r\n rowStyle={{}}\r\n rowClass={fnRowClass}\r\n rowTemplate={fnRowTemplate}\r\n```"},"comment":{"url":"https://api.github.com/repos/zippyui/react-datagrid/issues/comments/193132484","html_url":"https://github.com/zippyui/react-datagrid/issues/180#issuecomment-193132484","issue_url":"https://api.github.com/repos/zippyui/react-datagrid/issues/180","id":193132484,"user":{"login":"sravanrekandar","id":2802088,"avatar_url":"https://avatars.githubusercontent.com/u/2802088?v=3","gravatar_id":"","url":"https://api.github.com/users/sravanrekandar","html_url":"https://github.com/sravanrekandar","followers_url":"https://api.github.com/users/sravanrekandar/followers","following_url":"https://api.github.com/users/sravanrekandar/following{/other_user}","gists_url":"https://api.github.com/users/sravanrekandar/gists{/gist_id}","starred_url":"https://api.github.com/users/sravanrekandar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sravanrekandar/subscriptions","organizations_url":"https://api.github.com/users/sravanrekandar/orgs","repos_url":"https://api.github.com/users/sravanrekandar/repos","events_url":"https://api.github.com/users/sravanrekandar/events{/privacy}","received_events_url":"https://api.github.com/users/sravanrekandar/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T07:03:52Z","updated_at":"2016-03-07T07:03:52Z","body":"rowClass should work just the way rowStyle works except that the call back\nreturns a string.\n\nEg:\nfunction rowClass(data, props){\nvar className = ''\nif (props.index % 4 == 0){\nclassName += ' blue'\n}\n\nif (data.country == 'USA'){\nclassName += ' usa'\n}\n\nreturn className\n}\n\nUsage:\n<DataGrid\nidProperty='id'\ndataSource={data}\ncolumns={columns}\n// rowClass=\"my-row-class-name\"\nrowStyle={rowClass}\nstyle={{height: 400}}\n/>\n\n\n\n\nOn Fri, Mar 4, 2016 at 9:40 PM, Juliusz Choinski <notifications@github.com>\nwrote:\n\n> Does rowClass pass anything down so that I can customize the class?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/zippyui/react-datagrid/issues/180#issuecomment-192337539>\n> .\n>\n\n\n\n-- \n\n\n*_________________________________________________________________________________SRAVAN\nKUMAR*\n[I deserve by my effort]\nMobile: +91 8886926660\n"}}