473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Composite datagrid control

Hello,

For a while i'm trying to creat an datagrid composite control which has
dynamicly build columns en internationalized headers. Al this works at this
moment only some problems occurs when creating an events on the datagrid
when the itemcreated event is fired. I post the code for this event below.

private void _datagrid_ItemCreated(object sender, DataGridItemEventArgs e){
if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType ==
ListItemType.AlternatingItem) || (e.Item.ItemType ==
ListItemType.SelectedItem))
{
e.Item.Attributes.Add("onmouseover",
"this.style.backgroundColor='gray';this.style.curs or='hand'");

e.Item.Attributes.Add("onmouseout","this.style.bac kgroundColor='white';");
// e.Item.Attributes.Add("onclick","javascript:__doPo stBack('" +
"dw_client:" + "ctrl" + e.Item.ItemIndex + ":ctrl0','')");
}
}

When you look at the code you'll see that the mouseover en mouseevent event
work and the reaction from my control is that the color will change when
going over the columns.

The problem occurs on the doPostBack event. I continously receive the
message from IE: Object expected. I know that the problem is in the
javascript doPostBack code but i don''t know what is going wrong!

Can someone help me solving this problem.

Thnx in advance,

Martijn de Jong
The Netherlands
Jul 21 '05 #1
0 1012

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Martijn de Jong | last post by:
Hello, For a while i'm trying to creat an datagrid composite control which has dynamicly build columns en internationalized headers. Al this works at this moment only some problems occurs when...
0
by: Phil S. | last post by:
I'm having dreadful trouble putting a simple composite control into the DataGrid cell, so I'm hoping someone might have stumbled across this problem before and have some advice. My composite...
1
by: nikboss | last post by:
I have put datagrid in composite control in CreateChildMethod(). Databinding is done in page that contains my composite control, and it is done only if !IsPostBack. I have problem in post back...
1
by: Philip Townsend | last post by:
I have built a composite control containing a calendar, two dropdownlists, and a button. Currently I have only the index of each control as a means of formatting. What is the best way of formatting...
1
by: eric dugal | last post by:
Hi!! I just want to create a composite control derived from a datagrid and a one or more button on top of the grid in a table. I already tried to put my button on the createchildrenControls...
5
by: Alex Nitulescu | last post by:
Hi. Because I'm a beginner in creating controls, I spent more than two *&^#$ hours to create this "login" as a custom control and to make it work properly: ...
2
by: James T. | last post by:
Hello! I developed a composite control that inherits from HyperLink and overrides Render method. In web form I am using this control with DataGrid. On DataGrid ItemDataBound event I set...
0
by: Martijn de Jong | last post by:
Hello, For a while i'm trying to creat an datagrid composite control which has dynamicly build columns en internationalized headers. Al this works at this moment only some problems occurs when...
0
by: gaurav | last post by:
hi I have created one composite control in which i am using one datagrid and other controls . In this datagrid i am rendering one check box column which fire CheckedChanged event I have created...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.