Hi Guffa, can you please look in to this?
-
http://www.codeproject.com/script/comments/forums.asp?forumid=12076&fr=151&select=1553164&msg=1553164 How to highlight today's date row in datagrid when page loaded? I am really stuck in this issue. Thanks, NIKI
-
http://www.codeproject.com/script/comments/forums.asp?forumid=12076&fr=151&select=1553164&msg=1553164 How to highlight today's date row in datagrid when page loaded? I am really stuck in this issue. Thanks, NIKI
-
http://www.codeproject.com/script/comments/forums.asp?forumid=12076&fr=151&select=1553164&msg=1553164 How to highlight today's date row in datagrid when page loaded? I am really stuck in this issue. Thanks, NIKI
HI Niki, what I wrote in the last thread was to change backcolor of one row only. I got a new and easy Idea. DO one thing, on the page load event, get the max date from the database, then in ItemDataBound compare that date with all the rows, which ever matches, change the backcolor of that row. I think this is really easy Thanks Sushant Duggal. Sushant Duggal.
-
HI Niki, what I wrote in the last thread was to change backcolor of one row only. I got a new and easy Idea. DO one thing, on the page load event, get the max date from the database, then in ItemDataBound compare that date with all the rows, which ever matches, change the backcolor of that row. I think this is really easy Thanks Sushant Duggal. Sushant Duggal.
Hi Sushant, Thanks for the help. Well, my data is coming from the xml file th' web service. I am retreiving it in the dataset. So, I don't think, I can get the Max value for date from that. second, your idea is only good if there is no today's or future dates.But you never know about that. And one more thing, Is there any mechanism such that, i can pass the value from the datagrid to clientside javascript function which is displaying data without onclick, onmouseover event? I mean to say, when page load, The first row of the datagrid should be selected and the value of that row should pass to the javascript function which is displaying those data on page load. I tried this: e.attributes.add("onload","javascript:showdetails("'+parameter+'");"); but thats not working. Can you have idea about that? Thanks, NIKI
-
Hi Sushant, Thanks for the help. Well, my data is coming from the xml file th' web service. I am retreiving it in the dataset. So, I don't think, I can get the Max value for date from that. second, your idea is only good if there is no today's or future dates.But you never know about that. And one more thing, Is there any mechanism such that, i can pass the value from the datagrid to clientside javascript function which is displaying data without onclick, onmouseover event? I mean to say, when page load, The first row of the datagrid should be selected and the value of that row should pass to the javascript function which is displaying those data on page load. I tried this: e.attributes.add("onload","javascript:showdetails("'+parameter+'");"); but thats not working. Can you have idea about that? Thanks, NIKI
Hi Niki, You can still get the max date from the dataset generated from XML file. And regarding today or future dates, you can put check for them too. And regarding your second query, i am not sure when you want the values of the grid??? I mean where you want to use them? I haven't ever done this, I think you can take hidden variables and set them at the time of ItemDataBound of the grid, and then get the vaules of the hidden variables with getElementById. Give it a try Thanks, Sushant Duggal.