Ask a Question related to ASP.NET General, Design and Development.
-
Vincent #1
DataGrid questions (urgent)
1. In the edit mode of the datagrid, can I restrict the
max. length of data entry the editing textbox ?
eg in my database table, the length of the field is 10, I
want to make sure that user will not enter data with
length more than 10
2. I have made a template column of checkbox in
datagrid, how can I add a check all function for them ?
Thx
Vincent Guest
-
DataGrid Row Color...Urgent plz!
Your not getting any love on this question. I have the same need. I am aware of the setPropertiesAt(row#, {backgroundColor:0x000000}) for the list... -
About datagrid..Urgent.
Hi, i have 2 datagrids(both using paging) on my web page. one use to display info with check box control. if i needs the row of info, i will... -
Urgent - DataGrid
Hi, Is there anyway to add a command button at the end of each row and when i click on it, it can post one of the value into another field? e.g.... -
Please Urgent help in DataGrid problem
This is my sql query "SELECT UC_Course_Unit.Unit_ID, Unit.Unit_Name, UC_Course_Unit.Semester_Offered, UC_Course_Unit.Year_Offered FROM Unit... -
reusable DataGrid Urgent!!!
Does anyone know how to create a reusable datagrid from a class or ASCX which could except dynamic properties like column header text and could... -
Saravana #2
Re: DataGrid questions (urgent)
Here is the answers for your question,
1 . In editmode, set the Maxlength for the Textbox in ItemDataBound event
handler.
2. Have a button in your form. when you press that button loop throught
datagrid items and check all your check box.
--
Saravana
Microsoft India Community Star,
MCAD,SE,SD,DBA.
"Vincent" <kcchow@csis.hku.hk> wrote in message
news:069901c3403d$5adecf00$a301280a@phx.gbl...> 1. In the edit mode of the datagrid, can I restrict the
> max. length of data entry the editing textbox ?
> eg in my database table, the length of the field is 10, I
> want to make sure that user will not enter data with
> length more than 10
>
> 2. I have made a template column of checkbox in
> datagrid, how can I add a check all function for them ?
>
> Thx
Saravana Guest
-
Vincent #3
Re: DataGrid questions (urgent)
I know how to loop through the dataGrid items, however,
how can I check the check box ?
ItemDataBound event>-----Original Message-----
>Here is the answers for your question,
>
>1 . In editmode, set the Maxlength for the Textbox inbutton loop throught>handler.
>2. Have a button in your form. when you press that10, I>datagrid items and check all your check box.
>
>--
>Saravana
>Microsoft India Community Star,
>MCAD,SE,SD,DBA.
>
>
>"Vincent" <kcchow@csis.hku.hk> wrote in message
>news:069901c3403d$5adecf00$a301280a@phx.gbl...>> 1. In the edit mode of the datagrid, can I restrict the
>> max. length of data entry the editing textbox ?
>> eg in my database table, the length of the field is>>> want to make sure that user will not enter data with
>> length more than 10
>>
>> 2. I have made a template column of checkbox in
>> datagrid, how can I add a check all function for them ?
>>
>> Thx
>
>.
>Vincent Guest
-
Saravana #4
Re: DataGrid questions (urgent)
check out this code snippet,
For Each di In DataGrid1.Items
' Make sure this is an item and not the header or footer.
If di.ItemType = ListItemType.Item OrElse di.ItemType =
ListItemType.AlternatingItem Then
CType(di.FindControl("chkbox1"), RadioButton).Checked = True
End If
Next
--
Saravana
Microsoft India Community Star,
MCAD,SE,SD,DBA.
"Vincent" <kcchow@csis.hku.hk> wrote in message
news:080901c340b2$c6685af0$a001280a@phx.gbl...> I know how to loop through the dataGrid items, however,
> how can I check the check box ?
>
>> ItemDataBound event> >-----Original Message-----
> >Here is the answers for your question,
> >
> >1 . In editmode, set the Maxlength for the Textbox in> button loop throught> >handler.
> >2. Have a button in your form. when you press that> 10, I> >datagrid items and check all your check box.
> >
> >--
> >Saravana
> >Microsoft India Community Star,
> >MCAD,SE,SD,DBA.
> >
> >
> >"Vincent" <kcchow@csis.hku.hk> wrote in message
> >news:069901c3403d$5adecf00$a301280a@phx.gbl...> >> 1. In the edit mode of the datagrid, can I restrict the
> >> max. length of data entry the editing textbox ?
> >> eg in my database table, the length of the field is> >> >> want to make sure that user will not enter data with
> >> length more than 10
> >>
> >> 2. I have made a template column of checkbox in
> >> datagrid, how can I add a check all function for them ?
> >>
> >> Thx
> >
> >.
> >
Saravana Guest



Reply With Quote

